Commit graph

25 commits

Author SHA1 Message Date
Isiah Meadows
b98ab29efd
Make errors and their messages more accurate and helpful (#2536)
Also, I normalized them to all be sentences for consistency, and I moved
the reentrancy check from `m.mount` to `m.render` to be a little more
helpful. The router change during mounting is inconsequential and only
to avoid the new modified error, and the change to the update loop is to
send the original error if an error occurred while initializing the
default route. (This is all around more useful anyways.)

And while I was at it, I fixed an obscure bug with sync redraws.
2019-09-30 16:08:04 -04:00
Isiah Meadows
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Pierre-Yves Gérardy
8217d68e18
Better tests for Promise.prototype.finally 2018-02-20 00:27:39 +01:00
spacejack
e05fb0b048 Sync with next 2018-02-19 17:48:36 -05:00
spacejack
d283b24337 Separate Promise implementation from polyfilling 2018-02-19 23:33:32 +01:00
spacejack
17c7855d91 Add another simple finally test 2018-02-19 15:03:53 -05:00
spacejack
f99b804f5b Add Promise finally method to polyfill 2018-02-18 20:18:13 -05:00
Pat Cavit
d8d5ca3991 test: fix broken test after ospec update (#2031) 2017-11-29 17:06:10 +01:00
Stephan Hoyer
6fd8a52da0 Adapt test to new async callback behaviour 2017-08-31 19:31:08 +02:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Leo Horie
9ad16858a5 #1520 ospec: report duplicate test names 2017-01-08 13:05:27 -05:00
valtron
608f9889a5 Fix #1489: PromisePolyfill always overwrites window.Promise 2016-12-21 23:34:44 -07:00
Leo Horie
0b84a3f39f fix tests from #1470 2016-12-07 11:58:30 -05:00
Barney Carroll
d74fa75832 Test branched rejection handler resolution 2016-12-07 16:14:08 +00:00
Leo Horie
439cf95673 expose promise polyfill in a way that won't need code migration later 2016-11-16 21:15:23 -05:00
Leo Horie
bc8cf4ed76 change m.request return value from stream to promise
remove m.prop
add m.Promise
update tests and examples
2016-11-13 22:44:22 -05:00
Leo Horie
8c5fd9ec25 lint 2016-09-23 22:49:20 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
ddc430a6d3 fix most gcc warnings 2016-06-03 23:55:31 -04:00
Leo Horie
c79b4545c2 fix empty array case for Promise.all 2016-06-01 16:22:03 -04:00
Leo Horie
9a396c5173 use promise polyfill 2016-06-01 15:44:08 -04:00
Leo Horie
2e6e1c73d0 promises: A+ compliance, better async, unhandled rejection reporter 2016-06-01 01:24:14 -04:00
Leo Horie
3bb0a6287f promise bug fixes (work in progress) 2016-05-28 01:12:20 -04:00
Leo Horie
76d5d9ef2f promise polyfill 2016-05-26 15:23:06 -04:00