Dmitry Panov
|
5937a312ed
Reset args, newTarget and privEnv on recursive VM runs. See #481
|
3 lat temu |
Dmitry Panov
|
9343cf0121
Implemented generators (only synchronous so far). Closes #436
|
3 lat temu |
Dmitry Panov
|
78b980256d
Reserve a stack slot for 'this' in recursive RunProgram calls. Fixes #477
|
3 lat temu |
Dmitry Panov
|
9577c35d40
Set the callee value in recursive RunProgram calls. Fixes #477
|
3 lat temu |
Dmitry Panov
|
0341fef34b
Fixed panic propagation. See #471.
|
3 lat temu |
Dmitry Panov
|
6eb401d700
Fixed the propagation of un-catchable exceptions. See #471.
|
3 lat temu |
Mihail Stoykov
|
03d8fb271c
Propagate InterruptedError if returned by wrapped go function
|
3 lat temu |
Dmitry Panov
|
bce2464272
Got rid of funcName, using the callee object from the stack instead
|
3 lat temu |
Dmitry Panov
|
33bff8fdda
Async/await functionality (#464)
|
3 lat temu |
Dmitry Panov
|
6c0d988379
Unified conversions to Value. Fixes #453.
|
3 lat temu |
Dmitry Panov
|
3b8a68ca89
Include error message in the stack property. Closes #442.
|
3 lat temu |
Dmitry Panov
|
996d4a0dec
Do not fail getIterator if 'next' is set, but not a function, only fail in iterator step, as per the specification. Adjusted the error message.
|
3 lat temu |
Dmitry Panov
|
936bcca637
Squashed commit of the following:
|
3 lat temu |
Dmitry Panov
|
ea66e91185
Catch exceptions into the last output value (unwrapping GoError) if its type is 'error', even if there is just one output value. See #434
|
3 lat temu |
Dmitry Panov
|
5b9794a591
ToValue(func).Export() returns the original func. See #434
|
3 lat temu |
Dmitry Panov
|
d13e99b5b2
Allow accessing methods defined on the pointer type when literal value is used. Closes #402.
|
3 lat temu |
Dmitry Panov
|
f32f727444
Fixed formatting for Go 1.19
|
3 lat temu |
Dmitry Panov
|
c5c52bd8d6
Optimized CPU and memory usage when importing strings and using JSON.{parse,stringify}().
|
3 lat temu |
Dmitry Panov
|
7adb499685
Fixed Export() value for arrow functions and classes. Added Runtime.AssertConstructor. Closes #419.
|
3 lat temu |
Dmitry Panov
|
fca9b95977
Added NewSharedDynamicObject() and NewSharedDynamicArray(). Closes #418.
|
3 lat temu |
Dmitry Panov
|
0b5d210524
Implemented classes (including private elements). Closes #349.
|
3 lat temu |
Mihail Stoykov
|
87952593a5
Don't clear interrupt until the stack is empty (#405)
|
3 lat temu |
Dmitry Panov
|
b1618db072
Implemented 'copy-on-change' mechanism for inner compound values. Fixes #403.
|
3 lat temu |
Dmitry Panov
|
4418d4575a
Do not use fmt.Sprintf() for plain error strings. Fixes #388.
|
3 lat temu |
Dmitry Panov
|
9037c2b61c
Return true values of struct fields or reflect slice elements, rather than pointers to them. Closes #378.
|
3 lat temu |
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.
|
4 lat temu |
Dmitry Panov
|
61453c17e2
Reverted to the old behaviour of returning an error when converting non-array values into slices. Fixes #369, closes #370.
|
4 lat temu |
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.
|
4 lat temu |
Dmitry Panov
|
f3aaa50fcb
Improved export of Map, Set and iterable objects. Closes #368.
|
4 lat temu |
Dmitry Panov
|
b93494d0c5
Implemented optional chaining. Closes #350
|
4 lat temu |