Sami Vaarala
2c046e9700
Improve polyfill unhandled rejection handling
* Implement a HostPromiseRejectionTracker in the polyfill to make
specification behavior clearer.
6 years ago
Sami Vaarala
56d9eed057
Add some unhandled rejection basics to polyfill
6 years ago
Sami Vaarala
64f41b1bdf
Avoid explicit resolve/reject in Promise polyfill
* Avoid the creation of explicit resolve/reject functions for some basic
cases in the Promise polyfill.
* Remove .prototype object of resolve/reject functions because they are
not constructable. This breaks the circular reference nature of the
functions, allowing better GC behavior.
* Reuse a reaction queue object as a job queue object. This works because
the reaction queue objects are not visible to calling code, are used only
once, and never reused.
* Other minor optimizations.
7 years ago
Sami Vaarala
fe1a71ed73
Reject constructor call for resolve/reject
7 years ago
Sami Vaarala
9ca165080d
Promise polyfill comment trivia
7 years ago
Sami Vaarala
b1b5cff028
Avoid hard Symbol dependency for Promise polyfill
7 years ago
Sami Vaarala
4c661ec66e
Promise polyfill improvements
* Compact Promise objects on creation and when resolved, compact job queue
entries when queued.
* Function naming and other trivia.
7 years ago
Sami Vaarala
5b8d91f67c
Promise polyfill lint and other trivia fixes
7 years ago
Sami Vaarala
b393422e2d
Promise polyfill improvements
* Fix property attributes of a few functions.
* Fix names of '_try' and '_catch'.
* Queue function naming trivia.
* Fix some lint warnings.
7 years ago
Sami Vaarala
8035526e42
Fix Promise polyfill FIFO ordering
FIFO ordering is actually guaranteed by ES2015 for each individual job queue.
No ordering is guaranteed between job queues however.
7 years ago
Sami Vaarala
931e6a66a0
Promise polyfill improvements based on testcases
7 years ago
Sami Vaarala
0f04d75c1e
Add initial snapshot of Promise polyfill
7 years ago
Sami Vaarala
2b3425b0ee
Remove obsolete and broken regexp polyfill
7 years ago
Sami Vaarala
ce73b03e8d
Polyfill improvements for __lookupGetter__, etc
* Add polyfills for __lookupGetter__ and __lookupSetter__.
* Rework polyfills so that necessary Object functions are captured in setup.
8 years ago
Sami Vaarala
9a1aa62cc5
Add polyfill for global
8 years ago
Sami Vaarala
0ed17b3143
Fix some ArrayBuffer -> Uint8Array references
8 years ago
Sami Vaarala
e2c2efc7d3
Fix isFastint() polyfill to use revised info()
8 years ago
Sami Vaarala
9276a50b8f
Polyfill to approximate removed Duktape.Buffer
8 years ago
Sami Vaarala
e0b793c991
Polyfills for error .fileName etc writing behavior
- One polyfill to ensure Duktape 1.3.0 behavior
- One polyfill to ensure Duktape 1.4.0 behavior
If the write behavior change is an issue, you can use the first polyfill
to bring back Duktape 1.3.0 behavior.
9 years ago
Sami Vaarala
3fbd785183
Fix isFastint polyfill for new tag numbers
The new fastint detection works for both old and new packed boolean tag
(0xfff4 in Duktape 1.3.0, 0xfff5 now).
9 years ago
Sami Vaarala
af696adec5
Remove Ditz issue references
9 years ago
Sami Vaarala
38c4411e23
Polyfill ES6 ref updates
9 years ago
Sami Vaarala
eced78384c
Improve console polyfill String coercion
10 years ago
Sami Vaarala
4d0a946f9c
Add Duktape.isFastint() polyfill
10 years ago
Sami Vaarala
5702351e03
Polyfill comment updates
10 years ago
Sami Vaarala
9d5ac371b8
Add RegExp.prototype.compile() polyfill
10 years ago
Sami Vaarala
430ccc8994
Add Performance.now() polyfill
More or less untested.
10 years ago
Sami Vaarala
03e61ebc61
Add Object.assign polyfill
More or less untested.
10 years ago
Sami Vaarala
ef6e3c7baf
Make polyfill functions non-enumerable
It's a common expectation that Object.prototype methods in particular
are not enumerable so that they don't participate in e.g. for-in loops.
10 years ago
Sami Vaarala
8ed4352286
Polyfill trivia: add semicolons
10 years ago
Sami Vaarala
36a1f8bec4
Add a few polyfill files users may want to use
10 years ago