Dmitry Panov
|
9410bcaa81
Implemented template-backed objects and used them for most of the built-ins. Closes #524, closes #459.
|
2 years ago |
Dmitry Panov
|
c933cf95e1
Exposed String and StringBuilder. Closes #321.
|
2 years ago |
Dmitry Panov
|
28ee0ee714
Refactored conversion to primitive to better match modern ECMAScript standard. Wrapped Go values no longer have "toString" and "valueOf" methods defined on them. Closes #512.
|
2 years ago |
Dmitry Panov
|
9343cf0121
Implemented generators (only synchronous so far). Closes #436
|
2 years ago |
Dmitry Panov
|
33bff8fdda
Async/await functionality (#464)
|
2 years ago |
Dmitry Panov
|
fdb999e670
Always create a map when exporting. Fixes #422.
|
3 years ago |
Dmitry Panov
|
fca9b95977
Added NewSharedDynamicObject() and NewSharedDynamicArray(). Closes #418.
|
3 years ago |
Dmitry Panov
|
0b5d210524
Implemented classes (including private elements). Closes #349.
|
3 years ago |
Dmitry Panov
|
b1618db072
Implemented 'copy-on-change' mechanism for inner compound values. Fixes #403.
|
3 years ago |
Dmitry Panov
|
90825c0207
Fixed defineProperty("length") for arrays. Improved detection of non-standard array configurations. Upgraded tc39 tests.
|
3 years ago |
Dmitry Panov
|
cfb079cdc7
Removed special treatment of the last argument passed to a variadic Go function. Do not treat callables (functions) as array-like when exporting to slices. Fixes #369.
|
3 years ago |
Dmitry Panov
|
61453c17e2
Reverted to the old behaviour of returning an error when converting non-array values into slices. Fixes #369, closes #370.
|
3 years ago |
Dmitry Panov
|
dd567e70ae
Added support for go arrays (both to ToValue and ExportTo). Nom-addressable structs and arrays are copied in ToValue() so they remain writable in ES. Subsequent Export() returns the value including any changes made.
|
3 years ago |
Dmitry Panov
|
f3aaa50fcb
Improved export of Map, Set and iterable objects. Closes #368.
|
3 years ago |
Dmitry Panov
|
51b65454fa
Avoid calling toString() (which itself may throw) when formatting error messages. Fixes #343
|
3 years ago |
Dmitry Panov
|
f1567f3952
Upgraded tests, lots of fixes as a result
|
3 years ago |
Dmitry Panov
|
dc8c55024d
Implemented Promise. Closes #178.
|
4 years ago |
Dmitry Panov
|
4c062c2b35
Fixed accessor and property key function names. Fixes #314.
|
4 years ago |
Dmitry Panov
|
946559a566
Fixed typed arrays' defineProperty and indexing. Fixes #308.
|
4 years ago |
Dmitry Panov
|
1b11a6af68
Optimised setting of an empty array property
|
4 years ago |
Mihail Stoykov
|
f5884268f0
String.prototype.matchAll implementation (#248)
|
4 years ago |
Dmitry Panov
|
084ecb42b0
Implemented DynamicObject and DynamicArray as a simplified Proxy alternative
|
4 years ago |
Dmitry Panov
|
eb3de9ec1a
Changed WeakMap implementation to avoid memory leaks in some common usage scenarios. Fixes #250.
|
4 years ago |
Dmitry Panov
|
e933a54917
Refactored proxy implementation to improve the efficiency of the native handler. Includes a minor breaking API change in ProxyTrapConfig. Closes #227
|
4 years ago |
Dmitry Panov
|
b19cd2fe95
Added Object.entries(). Avoid slice allocation and copy in many cases when iterating over object keys. Avoid duplication of the length property when switching between regular and sparse arrays. Closes #246.
|
4 years ago |
Dmitry Panov
|
19cfe0fd8a
Fixed some edge cases
|
4 years ago |
Dmitry Panov
|
6060b0671c
Exposed Symbol
|
4 years ago |
Dmitry Panov
|
44400d2d22
Do not create an object if a native constructor is called without 'new'. Closes #228.
|
4 years ago |
Dmitry Panov
|
81ddb8a7cc
Rewrote the handling of weak keys to avoid creating circular structures when weak keys are reachable from Runtime. Fixes #199.
|
5 years ago |
Dmitry Panov
|
536f9d9465
Export() and ExportTo() now support circular objects. Fixes #162, closes #188.
|
5 years ago |