Robert Krimen
ec902a6452
Split builtin.go out to builtin_*.go
2013-02-20 15:58:45 -08:00
Robert Krimen
4e4e89c894
Fix bug in String.slice with a (go) slice bounds violation
...
Basically, check that start is less than length before trying
to take a slice.
Also, rename valueToArrayIndex to valueToRangeIndex to reflect
the fact that it does not always return a value that is valid
index (value could be length)
2013-02-20 15:58:43 -08:00
Robert Krimen
ae1fa3daef
Fix indexOf to use safer _toInteger
2013-02-19 17:14:34 -08:00
Robert Krimen
bdaa00884d
toU16/U32/I32 => toUint16/Uint32/Int32
2013-02-18 15:58:48 -08:00
Robert Krimen
20d2e8bba6
gofmt
...
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
aef569f297
Fix to handle Infinity radix in parseInt properly
2012-11-15 15:15:26 -08:00
Robert Krimen
9385f32241
Fix substring to have correct behavior
2012-11-06 20:03:22 -08:00
Robert Krimen
491805071f
Add toPropertyDescriptor, Object.getOwnPropertyDescriptor
2012-10-27 14:18:07 -07:00
Robert Krimen
9d6d2638c1
Move toPropertyDescriptor into property.go
2012-10-27 13:22:58 -07:00
Robert Krimen
42233ac62f
Add Object.create, Object.defineProperties
2012-10-27 09:48:11 -07: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
b6f98935d4
Add Object.defineProperty( ... )
2012-10-26 16:34:34 -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
f842eda638
Add a String.substr implementation
...
This will fix #6
2012-10-19 13:26:22 -07:00
Robert Krimen
2a1b3aaaca
Add rudimentary Math.pow builtin
2012-10-18 11:30:45 -07:00
Robert Krimen
24e71588dd
Add String.fromCharCode
2012-10-18 10:58:23 -07:00
Robert Krimen
474a473e36
Convert _syntaxError to SyntaxError (eval)
2012-10-17 10:27:22 -07:00
Robert Krimen
32cbffe7b8
Avoid backing up when checking for line terminator
2012-10-17 01:05:52 -07:00
Robert Krimen
235c19bd71
Substitute undefined for failed captures in String.replace
...
When String.replace(...) is called with a replacement function.
Again, similar to the scenario in #2 .
2012-10-14 22:50:17 -07:00
Robert Krimen
b718c5ec2a
Handle missing captures gracefully in String.replace
...
This is related to #2
2012-10-14 22:33:22 -07:00
Robert Krimen
ff5fc43690
Add Date.toUTCString
2012-10-07 23:05:15 -07:00
Robert Krimen
fa0f2abc44
Use new date adjustment technique
2012-10-07 22:54:39 -07:00
Robert Krimen
4a8c7ffc00
Initial commit
2012-10-05 18:47:53 -07:00