Robert Krimen
809a0a0ba6
Split tests out of one big massive file
2013-02-05 08:56:08 -08:00
Robert Krimen
15aadd333c
Upgrade underscore to 1.4.4, including tests
2013-02-04 21:58:47 -08:00
Robert Krimen
aaa90bf65c
Fix HasInstace (instanceof) to return false
...
Should not TypeError panic on a non-Object
2013-02-04 15:21:00 -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
e5ff4cef59
Add delete to type_array
2013-02-04 07:30:53 -08:00
Robert Krimen
3240efeb62
Convert string to utf16 for length, indexing, etc.
...
This change is internal to String objects
2013-01-25 14:57:55 -08:00
Robert Krimen
20d2e8bba6
gofmt
...
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
668d0fc6a7
Fix broken (panicking) RegExp transformations
...
Transformations would panic on some edge (error) cases:
\u0z
\x_
2012-12-28 15:50:37 -08:00
Robert Krimen
2b5c4b6975
Safeguard RegExp.exec against non-RegExp
2012-11-21 18:27:36 -08:00
Robert Krimen
aef569f297
Fix to handle Infinity radix in parseInt properly
2012-11-15 15:15:26 -08:00
Robert Krimen
db913468da
If a property is defined without a value (nil interface), define it as undefined
2012-11-14 15:48:19 -08:00
Robert Krimen
0498f06be0
Fix trying to delete non-reference
2012-11-14 11:09:52 -08:00
Robert Krimen
bff799a0e1
Test for correct endIndex when submatching
2012-11-11 16:23:51 -08:00
Robert Krimen
845172c82c
endIndex needs to be an offset from lastIndex
2012-11-07 15:46:21 -08:00
Robert Krimen
9385f32241
Fix substring to have correct behavior
2012-11-06 20:03:22 -08:00
Robert Krimen
d9765234a4
Fix to not bypass finally on continue, break, return, etc.
2012-11-06 17:58:31 -08:00
Robert Krimen
a4de862caa
Test condition in case of continue in do-while
2012-11-06 17:27:12 -08:00
Robert Krimen
26f8a53978
Accept out-of-range +/-Infinity (instead of NaNing)
2012-11-06 11:06:45 -08:00
Robert Krimen
aa3109f8db
typeof null === "object"
2012-11-05 13:57:18 -08: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
c1a21812fe
Fix trying to call a non-function as a function
2012-10-22 14:29:14 -07:00
Robert Krimen
820c21423f
Bypass a little bit more of the gauntlet (for now)
2012-10-20 23:52:34 -07:00
Robert Krimen
68943ba1e4
More (complex) RegExp => RE2 transforming and tests
...
The unescaping of that which does not need escaping
2012-10-20 23:32:30 -07:00
Robert Krimen
33d9cbf707
Add a few regular expression tests
2012-10-20 15:00:25 -07:00
Robert Krimen
3a6dcf46ef
Don't expose re2 regular expression via //.source
2012-10-20 12:55:29 -07:00
Robert Krimen
05ee181c34
Fix parsing of null, etc. on Object intialization
...
true, false, etc.
2012-10-19 16:24:14 -07:00
Robert Krimen
ed98144c35
Remarks on UTF-8/16
2012-10-17 11:54:04 -07:00
Robert Krimen
474a473e36
Convert _syntaxError to SyntaxError (eval)
2012-10-17 10:27:22 -07:00
Robert Krimen
a780c85861
Fill out switch, for, for-in labelling
...
This and the previous commit fix #4
2012-10-16 23:11:35 -07:00
Robert Krimen
58cf2a4b67
Add break capability to switch
2012-10-16 22:57:25 -07:00
Robert Krimen
defac5b22e
Fix prototype property being read-only
...
Fix #3
2012-10-15 22:12:36 -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
a12391834e
Sometimes RegExp captures can fail, detect this
...
Fix #2 (In .exec so far)
2012-10-14 21:45:38 -07:00
Robert Krimen
89e26f042e
Allow empty test/update in for statements
...
Fix #1
2012-10-14 10:42:06 -07:00
Robert Krimen
7dfbf6ab13
Better regular expression syntax checking
...
And a limitation elaboration
2012-10-12 18:55:41 -07:00
Robert Krimen
02929cbeb1
Shortcut the production of Object.Value()
2012-10-11 18:22:00 -07:00
Robert Krimen
c57edbfe2b
Alter Object.Call to be more in line with .Get, .Set
2012-10-11 17:57:51 -07:00
Robert Krimen
ff5fc43690
Add Date.toUTCString
2012-10-07 23:05:15 -07:00
Robert Krimen
dc0406aeb7
setSeconds/Minutes/Hours/Date, etc.
2012-10-07 23:02:25 -07:00
Robert Krimen
fa0f2abc44
Use new date adjustment technique
2012-10-07 22:54:39 -07:00
Robert Krimen
e35b7985f6
Implement Date.setMonth/setUTCMonth
2012-10-07 19:16:58 -07:00
Robert Krimen
42d43e0878
Make sure to error out early on ReferenceError
2012-10-07 18:47:13 -07:00
Robert Krimen
979a87a79d
Fix casing on evaluateNew
2012-10-07 18:39:12 -07:00
Robert Krimen
a101717e89
Test for not erroring out early
2012-10-07 18:30:59 -07:00
Robert Krimen
4a8c7ffc00
Initial commit
2012-10-05 18:47:53 -07:00