Commit Graph
46 Commits
Author SHA1 Message Date
Dániel Bátyai 579b1edaa5 Refactor builtins to handle CESU-8 encoded strings.
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-10-15 16:01:10 +02:00
Dániel Bátyai dcd610b305 Change internal encoding of strings to CESU-8
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-10-15 13:39:00 +02:00
Dániel Bátyai 91f0c9d625 Parse integer numbers from back to front.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-09-16 14:30:45 +02:00
Dániel Bátyai 13941df8dd Implement RegExp.prototype.compile()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-24 10:10:09 +02:00
Dániel Bátyai 5bb56643aa Fix undefined fromIndex in Array.prototype.lastIndexOf()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-14 10:15:27 +02:00
Dániel Bátyai 4ee30cba5d Fix RegExp literal parsing
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-12 11:49:05 +02:00
Dániel Bátyai d2ac7c320d Fix invalid control escapes during RegExp parsing.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-12 11:33:15 +02:00
Dániel Bátyai cf1eda0981 Fix assertion fails in parseInt()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-10 15:04:14 +02:00
Dániel Bátyai b7d3189ac3 Trim whitespace from argument names in Function constructor
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-10 10:28:42 +02:00
Dániel Bátyai 58851bc7cc Fix bound function length
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-10 10:13:35 +02:00
Dániel Bátyai c17197dcab Handle Unicode characters in parseFloat()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-06 10:38:03 +02:00
Dániel Bátyai 156510e174 Fix array index normalize in case index is negative zero
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-08-04 14:53:59 +02:00
Dániel Bátyai fe475eace7 Use ToNumber when checking lastIndex during RegExp exec()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-30 13:03:05 +02:00
Dániel Bátyai 39cf5aaa7c Fix RegExp constructor when called with undefined arguments
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-30 09:47:37 +02:00
Dániel Bátyai 1193de88cc Use [[DefineOwnProperty]] in Array builtins where necessary.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-30 09:31:49 +02:00
Dániel Bátyai f1248b9780 Fix Number.prototype.toString() when radix is undefined.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-28 12:04:41 +02:00
Dániel Bátyai 2e0334ccb2 Returned array of Array.prototype.map() should have same length as original.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-27 10:41:50 +02:00
Dániel Bátyai fc45b80579 Fix Array.prototype.toLocaleString() when toLocaleString returns non-string.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 17:43:16 +02:00
Dániel Bátyai b11007055d Fix buffer size calculation in Number.prototype.toString()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 17:21:04 +02:00
Dániel Bátyai fec5933a3d Fix Array.prototype.push() and unshift() in case result length is larger than UINT_MAX
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 17:16:34 +02:00
Dániel Bátyai 6567651b6c Fix Array index normalize helper when index is large.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 15:01:12 +02:00
Dániel Bátyai 9513808647 Fix Array.prototype.concat() when 'this' is not an array.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 10:12:02 +02:00
Dániel Bátyai 27161d31df Fix leak in Array.prototype.indexOf() when 'fromIndex' can't coerce to primitive value.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-24 10:31:37 +03:00
Dániel Bátyai a2c6663d43 Array.prototype.sort() now handles defined properties only.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-22 14:18:24 +03:00
Dániel Bátyai 9d6e7bf336 Array.prototype.sort() should sort in place.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-22 14:18:24 +03:00
Dániel Bátyai b414329ce8 Fix Array.prototype.concat() argument array length.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-16 10:22:52 +03:00
Dániel Bátyai e5b2e1e389 Number.prototype functions should throw TypeError if 'this' is not number.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-15 15:41:19 +03:00
Dániel Bátyai 5e0a355ab9 Implement printing in the specified radix for Number.prototype.toString().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-08 11:25:00 +02:00
Dániel Bátyai 3c4c5452dd Add length property to Array constructor
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-07 17:14:07 +02:00
Dániel Bátyai 9402e3d59c Fix [[Class]] property of builtin constructors
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-07 16:59:27 +02:00
Dániel Bátyai 47cd42ecc5 Fix Number.prototype.toFixed if argument is outside int32 range
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-06 15:17:27 +02:00
Dániel Bátyai 713b433c42 Implement Number.prototype.toPrecision()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-01 11:15:18 +02:00
Dániel Bátyai 53cbb55f25 Implement Number.prototype.toExponential()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-07-01 10:51:55 +02:00
Dániel Bátyai 7d3bb85ccb Fix buffer size in Number.prototype.toFixed()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-06-23 14:14:39 +02:00
Dániel Bátyai 7508b803cf Implement parseFloat()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-06-17 16:42:07 +02:00
Dániel Bátyai 35840a4b6d Implement parseInt()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-06-17 16:41:57 +02:00
Dániel Bátyai 3329583435 Implemented Array.prototype.filter()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-28 15:36:28 +02:00
Dániel Bátyai 0ef0b0d595 Implemented Array.prototype.reverse()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-27 11:25:04 +02:00
Dániel Bátyai b049998606 Implemented Array.prototype.every()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-27 11:13:06 +02:00
Dániel Bátyai d144cbfe90 Implemented Array.prototype.some()
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-22 15:03:15 +02:00
Dániel Bátyai 36b8fa5452 Implemented Array.prototype.lastIndexOf().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-21 14:39:43 +02:00
Dániel Bátyai a750317766 Implemented Array.prototype.forEach().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-18 10:46:22 +02:00
Dániel Bátyai 3c1563a3c0 Implemented Array.prototype.unshift().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-18 10:36:20 +02:00
Dániel Bátyai 1f8772d35f Implemented Array.prototype.shift().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-18 10:20:32 +02:00
Dániel Bátyai fd0c943feb Implemented Array.prototype.indexOf().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-15 16:03:57 +02:00
Dániel Bátyai ca12c16607 Implemented Array.prototype.pop().
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2015-05-14 11:11:25 +02:00