Dmitry Panov
|
21e33551e7
Always use container's address, if we can. Fixes #620.
|
1 год назад |
Gani Georgiev
|
1af89b1100
allow access to the public fields of unexported embedded struct
|
1 год назад |
Dmitry Panov
|
c933cf95e1
Exposed String and StringBuilder. Closes #321.
|
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
|
6c0d988379
Unified conversions to Value. Fixes #453.
|
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
|
fdb999e670
Always create a map when exporting. Fixes #422.
|
3 лет назад |
Dmitry Panov
|
b1618db072
Implemented 'copy-on-change' mechanism for inner compound values. Fixes #403.
|
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 лет назад |
Dmitry Panov
|
a5e7acf16e
Added staticcheck (#364)
|
3 лет назад |
Dmitry Panov
|
bf6af58bbc
Refactored tests
|
3 лет назад |
Dmitry Panov
|
6e5fa0950d
Prefer the exported value when doing type conversions to preserve wrapped values. Only use reflect.Convert() if the types' kinds match. Closes #329.
|
4 лет назад |
Dmitry Panov
|
28cf031cb8
Fixed formatting.
|
5 лет назад |
Dmitry Panov
|
52a8eb19c9
Updated documentation, fixed Date export. See #170, closes #182
|
5 лет назад |
Dmitry Panov
|
01ead28552
Merge branch 'master' into es6
|
5 лет назад |
Dmitry Panov
|
a695b0cdd4
toString() returns String() for wrapped fmt.Stringer and Error() for wrapped error (instead of "[object Object]").
|
5 лет назад |
Dmitry Panov
|
98bf47ee8f
Merge branch 'master' into es6
|
5 лет назад |
Dmitry Panov
|
2faa37d3de
Added a note about pointers to primitive types and a corresponding test. See #158.
|
5 лет назад |
Dmitry Panov
|
4dcd8d29d6
Merge branch 'master' into es6
|
5 лет назад |
Dmitry Panov
|
f1752421c4
Added two standard FieldNameMappers. Closes #152.
|
5 лет назад |
Dmitry Panov
|
5df89c3d31
Support for malformed UTF-16 strings and property keys. Missing String methods. (#146)
|
5 лет назад |
Dmitry Panov
|
a13c43b62b
Proxy (#135)
|
5 лет назад |
Oleg Gerasimov
|
5ec49f4aaa
[fix] toReflectValue use fieldNameMapper
|
5 лет назад |
Dmitry Panov
|
ebfbf88ae3
Made nested structs addressable if possible. Closes #129.
|
5 лет назад |
Dmitry Panov
|
aa89e6a4c7
Removed erroneous IsExported() calls, because these are js names which may be mapped. Closes #114
|
6 лет назад |
Dmitry Panov
|
64be363d12
Do not skip the entire anonymous field if its name is mapped to "". Fixes #84
|
6 лет назад |
Dmitry Panov
|
7239ea9475
Do not panic when trying to assign to a non-addressable reflect value (see #78).
|
7 лет назад |
Dmitry Panov
|
9bbb616c12
Added Object.DefineDataProperty() and Object.DefineAccessorProperty(). See #45
|
8 лет назад |
Dmitry Panov
|
c67fd92e12
Added support for non-struct anonymous fields. Excluded unexported fields and methods from FieldNameMapper. Fixes #26.
|
8 лет назад |