Dmitry Panov
|
9410bcaa81
Implemented template-backed objects and used them for most of the built-ins. Closes #524, closes #459.
|
2 年之前 |
Dmitry Panov
|
7749907a8a
Update the length property when it's accessed, rather than on grow/shrink. Maintain pointer type of a wrapped *[]any. Fixes #521.
|
2 年之前 |
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 年之前 |
Dmitry Panov
|
d13e99b5b2
Allow accessing methods defined on the pointer type when literal value is used. Closes #402.
|
3 年之前 |
Dmitry Panov
|
1444e6b945
Refactored conversion to primitive. Always use `String()` method if defined. Closes #423.
|
3 年之前 |
Dmitry Panov
|
b1618db072
Implemented 'copy-on-change' mechanism for inner compound values. Fixes #403.
|
3 年之前 |
Dmitry Panov
|
9037c2b61c
Return true values of struct fields or reflect slice elements, rather than pointers to them. Closes #378.
|
3 年之前 |
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 年之前 |