Alexander F Rødseth
ab54b0b8c6
Use -- instead of -= 1, as recommended by golint
2016-06-24 09:53:49 +02:00
Robert Krimen
e6768252c2
Improve error reporting
...
* Delay entering global scope on code evaluation, not runtime creation
This fixes #66
2014-06-12 21:27:32 -07:00
Robert Krimen
709a0aa7ff
Value.string(), .float64(), .bool(), etc.
2014-06-06 21:29:40 -07:00
Robert Krimen
b813fe3676
Fix JSON.stringify treating large integers as float64
...
This fixes #80
2014-06-06 21:08:59 -07:00
Robert Krimen
7a2ed55010
Fix assumption that property.value is Value
2014-02-14 20:06:31 -08:00
Robert Krimen
329e5afb2c
Add objectLength
2014-02-01 11:09:14 -08:00
Robert Krimen
ca0a007083
RangeError if Array.length = 3.141, new Array(3.141), etc.
2013-08-11 14:59:31 -07:00
Robert Krimen
ac8b526ba6
Test DefineOwnProperty (Array)
2013-07-21 17:48:42 -07:00
Robert Krimen
4ebf6416d0
Fix Uint32 Array/String indexing
...
Also, a bunch of toValue_* streamlining
And maybe a few miscellaneous tweaks
2013-06-22 15:49:22 +02:00
Robert Krimen
7e2b4f2063
Rewrite of property handling to be more robust and compliant
...
* No more _stash
* Now using a "virtual table" system via _objectClass
* Make Array.concat GoArray compatible (via .isArray())
Fix #16
2013-05-12 14:14:51 -07:00
Robert Krimen
9f1daa280e
Make sure delete([].xyzzy) (Array) actually works
2013-04-17 15:08:53 -07:00
Robert Krimen
bdaa00884d
toU16/U32/I32 => toUint16/Uint32/Int32
2013-02-18 15:58:48 -08:00
Robert Krimen
a879744c20
Add Go <=> JavaScript type interaction
...
Via reflection for struct, map, and slice/array
Fix #10
2013-02-04 10:31:44 -08:00
Robert Krimen
96601bf274
Reorganize (type_*) code layout
2013-02-04 07:41:38 -08:00
Robert Krimen
e5ff4cef59
Add delete to type_array
2013-02-04 07:30:53 -08:00
Robert Krimen
20d2e8bba6
gofmt
...
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
6f5ca7cc0d
Beef up _property, remove _defineProperty
...
Remove uneeded _valueProperty
Rename to propertyMode_{write,enumerate,configure}
.Can* => writeable, enumerable, configureable
Privatize _property
Get rid of _defineProperty
2012-10-27 08:59:38 -07:00
Robert Krimen
3c93384f5c
Cleanup of stash, property, and object
...
Use octal to designate write/enumerate/configure (experimental)
Move extensibility responsibility into the stash
Rename propertyStash => objectStash (be congruent with arrayStash, etc.)
Get rid of a bunch of useless methods
Privatize everything ([A-Z] => [a-z_])
gofmt
2012-10-26 15:47:19 -07:00
Robert Krimen
4a8c7ffc00
Initial commit
2012-10-05 18:47:53 -07:00