Tim Jurcka
5fe23327c9
Add JSON
...
This closes #37 , #11
2014-02-01 11:32:21 -08:00
Robert Krimen
329e5afb2c
Add objectLength
2014-02-01 11:09:14 -08:00
Robert Krimen
41e5803a57
Fix Value.isArray => isArray
2014-02-01 11:09:14 -08:00
Robert Krimen
ee02d532e6
Fully implement multi-argument setHours/setMinutes/setFullYear/...
2014-01-26 10:03:26 -08:00
Robert Krimen
ba0837d685
Fix Date.prototype.set(UTC)FullYear.length = 3
2014-01-25 12:17:07 -08:00
Robert Krimen
75f314ab90
Fix Date.prototype.set(UTC)Month.length = 2
2014-01-25 12:15:54 -08:00
Robert Krimen
8664a2c303
Fix Date.prototype.set(UTC)Hours.length = 4
2014-01-25 12:14:34 -08:00
Robert Krimen
22a7846e7a
Fix Date.prototype.set(UTC)Minutes.length = 3
2014-01-25 12:14:30 -08:00
Robert Krimen
aef285c917
Fix Date.prototype.set(UTC)Seconds.length = 2
2014-01-25 12:09:54 -08:00
Robert Krimen
0ba238b0b3
Fix Date.UTC.length = 7
2014-01-25 12:07:08 -08:00
Robert Krimen
a8ade89afd
Fix Date.parse.length = 1
2014-01-25 12:05:44 -08:00
Robert Krimen
b95251bd97
Document problematic date/time behavior
2014-01-25 11:50:37 -08:00
Robert Krimen
f578229e36
Fix Date(...) to be different from new Date(...)
2014-01-25 11:14:38 -08:00
Robert Krimen
def5c4837d
Fix Date.parse to parse RFC1123
2014-01-25 11:13:30 -08:00
Robert Krimen
302b2f0cbf
Fix Math.pow(-1, +Infinity) => NaN
2014-01-25 10:52:23 -08:00
Robert Krimen
46f720d27b
Fix Number.prototype.toFixed to use ToString if exponent >= 21
2014-01-25 10:16:35 -08:00
Robert Krimen
e2ebc15faf
Fix Number.prototype.toString(undefined)
2014-01-24 22:24:31 -08:00
Robert Krimen
1df390a237
Fix String.prototype.lastIndexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
60b6d1190f
Fix String.prototype.indexOf to return the right index even with an offset
2014-01-24 21:20:22 -08:00
Robert Krimen
b49fd47f78
Fix special case in String.prototype.split
2014-01-24 21:20:22 -08:00
Robert Krimen
f0aa5da996
Fix off-by-one error with $' in String.prototype.replace
2014-01-24 21:20:22 -08:00
Robert Krimen
56429ee75b
Fix placement of elements during Array.prototype.concat
...
Increase the index even if the element at the index does not exist
2014-01-24 21:20:22 -08:00
Robert Krimen
c8dbfa3536
Fix inadvertent stringification in Array.prototype.concat
2014-01-24 21:20:22 -08:00
Robert Krimen
5a547eb437
Add tests for Array.prototype.map
2014-01-24 21:20:22 -08:00
Robert Krimen
d266e3e1cf
Add tests for Array.prototype.forEach
2014-01-24 21:20:22 -08:00
Robert Krimen
5506ffa845
Add tests for Array.prototype.some
2014-01-24 21:20:22 -08:00
Robert Krimen
5454337813
Add tests for Array.prototype.every
2014-01-24 21:20:22 -08:00
Robert Krimen
3ed7305787
Fix NaN/+0/-0 comparison in Array.prototype.lastIndexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
3ba06f003c
Fix NaN/+0/-0 comparison in Array.prototype.indexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
02a5e270d8
Test the genericity of Array.prototype.indexOf
2014-01-24 21:20:22 -08:00
Robert Krimen
7970552164
Fix: Array.prototype.sort.length = 1
2014-01-22 20:46:15 -08:00
Robert Krimen
5e8cb6296e
Fix: Array.isArray.length = 1
2014-01-22 20:33:46 -08:00
Robert Krimen
81d91501f8
Handle non-numeric arguments to new Array properly
2014-01-22 20:30:10 -08:00
Robert Krimen
21cd663185
Allow .bind to bind [[Construct]]
2014-01-20 18:04:34 -08:00
Robert Krimen
73b83020ce
Add caller and arguments properties to functions via .bind
2014-01-20 13:25:41 -08:00
Robert Krimen
4fd197197d
Add test for .binding something that is not callable
2014-01-20 13:13:44 -08:00
Robert Krimen
2d6125ee2c
Fix .length property of functions via .bind
2014-01-20 12:58:00 -08:00
Robert Krimen
a36c19873f
Fix Function.prototype.call .length
2014-01-20 12:42:23 -08:00
Robert Krimen
dace228dc8
Remove superfluous test
2014-01-20 12:32:08 -08:00
Robert Krimen
975b815b58
Fix: Function.prototype.toString (Should not be generic)
2014-01-20 12:27:05 -08:00
Robert Krimen
7d9809b2ec
Fix: Function(null)
...
Should throw a SyntaxError for any keyword
2014-01-20 11:47:36 -08:00
Robert Krimen
6daecbf17e
Fix: Function("z;x", ...)
...
Should throw a SyntaxError
2014-01-20 11:27:37 -08:00
Robert Krimen
514ac5ab9c
Fix parsing: body, parameters => parameters, body
...
We were parsing in revese order...
2014-01-20 10:59:56 -08:00
Robert Krimen
e40549dbd2
Fix: Function("abc, def", "ghi", ...)
2014-01-20 10:30:02 -08:00
Robert Krimen
89a849c136
Fix: "[object Object]" (Should be a SyntaxError)
2014-01-20 10:29:41 -08:00
Robert Krimen
4a6c644125
Fix Object.defineProperties to only enumerate over enumerable
2014-01-20 08:56:10 -08:00
Robert Krimen
4860ef573b
Fix Function.bind to use newBoundFunction...
...
...instead of newBoundFunctionObject
Basically, newBoundFunctionObject returns an incomplete object (without a prototype, __prototype__, etc.)
2014-01-20 08:27:19 -08:00
Robert Krimen
c47cf7be6e
Improve arguments property handling
...
Also, fix an issue with double enumeration of arguments
2014-01-19 21:08:05 -08:00
Robert Krimen
4c1bc5857b
Fix documentation (nikai3d)
...
This fixes #45
The errors are manifest in the README, but this is automatically generated from the go documentation, so we have to fix them at the source
2014-01-19 10:52:14 -08:00
Robert Krimen
7cd78b3a28
Make Date.now test less flaky
...
This fixes #44
2014-01-19 09:24:46 -08:00