Commit Graph
1831 Commits
Author SHA1 Message Date
Roland Takacs c4b1f02947 Fix assertion 'ret_value == ecma_make_empty_completion_value ()' fail in JSON.stringify()
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-11 18:29:11 +02:00
Zoltan Herczeg f2c846d960 Fix the this argument passed to string replace callbacks.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-08-11 06:23:43 -07:00
Evgeny Gavrin c6b4510c9a Add script for performance testing.
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
2015-08-11 16:14:35 +03:00
Andrey Shitov 0d855e898d Fix hoisting of function declaration from function expressions.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-11 15:01:45 +03:00
Andrey Shitov 531a9d3352 Fix invalid preparsing of variable declarations which are not splitted by comma.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-11 14:39:02 +03:00
Andrey Shitov d6ad1c467e Fix semicolon check after variable declaration list.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-11 14:23:11 +03:00
Andrey Shitov 95c1c223e8 Add checking for invalid operand in perfix operation.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-11 13:51:37 +03:00
Zoltan Herczeg a751478a19 Although the standard does not specify the effect of $nn in String.replace when nn is bigger than the max, the test-262 test suite expects a certain behaviour. This behaviour is mimiced by this patch.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-08-10 23:22:19 -07:00
chunseok lee d31eb3c4cb Jerry API for array creation and manipulation
1. jerry_api_create_array_object : create array object of given size
2. jerry_api_set_array_index_value : set value at given index
3. jerry_api_get_array_index_value : get value at given index

JerryScript-DCO-1.0-Signed-off-by: chunseok lee [email protected]
2015-08-11 15:02:56 +09:00
Ruben Ayrapetyan 1cafff32b5 Pass function arguments through ecma-collections.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-10 19:56:07 +03:00
Ruben Ayrapetyan 7daabb1974 Change fill_params_list to append formal parameter names to ecma-values collection, instead of array; rename it to vm_fill_params_list.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-10 19:56:07 +03:00
Ruben Ayrapetyan 72ce13a63a Change type of MEM_CP_NULL to mem_cpointer_t.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-10 19:56:06 +03:00
Szilard Ledan e22a085fc1 Implement RegExp octal support
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
2015-08-10 15:13:21 +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
Zoltan Herczeg 8df6cdd1e9 Refactor fromCharCode including support for surrogate pairs.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-08-10 04:34:31 -07:00
Roland Takacs f10a48df96 Fix assertion 'mem_pools == NULL' failed in Function.constructor
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-10 11:29:51 +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
Zsolt Borbély 640370da43 Implement String.prototype.split function
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
2015-08-07 16:07:27 +02:00
Roland Takacs ff580ca33e Use ecma-collection in JSON.
The simple list data structure has been replaced with ecma-collection in the JSON object.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-07 13:35:52 +02:00
László Langó a19dd0523e Fix 'property_p != NULL' assertion fail in RegExp
Related issue: #312

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-07 08:02:02 +02:00
László Langó 2d80456eb7 Fix Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' in RegExp.
Related issue: 316

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-06 15:00:38 +02:00
Ruben Ayrapetyan 97aed75a46 Introduce interface for removal of a ecma-collection's last value.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-06 15:52:41 +03:00
László Langó ab846f6fba Fix invalid control escape in RegExp.
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-06 14:45:52 +02:00
Kristof Kosztyo 2eb8f76089 Fix ecma_get_property_descriptor_from_property for accessor properties with [[Get]] / [[Set]] set to undefined value
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo [email protected]
2015-08-06 14:23:36 +02:00
Peter Gal fe0ec9d7fa Object constructor prototype should be set to Function.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-08-06 13:38:24 +02:00
Roland Takacs 5888401318 Fix assertion 'bytes_copied > 0 || !string_len' in JSON.stringify()
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-06 13:15:54 +02:00
Zsolt Borbély e61f41a0bc Fix of memory leak in Function.prototype.bind function.
Related issue: #511

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
2015-08-06 13:05:33 +02:00
Zoltan Herczeg 2630048ecc Fixes for URI decoding.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-08-06 03:52:16 -07:00
Szilard Ledan caeae0f621 Fix undefined result in RegExp engine
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
2015-08-06 10:49:59 +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
László Langó 7aacb8fc01 Remove recursion limit from RegExp engine.
Related issue: #388

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-06 09:58:50 +02:00
Zsolt Borbély 9cc706d21d Enable tests after #435.
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
2015-08-06 09:12:57 +02:00
Laszlo Vidacs 554305d88c Implement String.prototype.lastIndexOf()
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs [email protected]
2015-08-06 08:52:09 +02:00
Ruben Ayrapetyan 7aa1b16184 Change fill_varg_list to append arguments values to ecma-values collection, instead of array; rename it to vm_fill_varg_list.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-05 16:55:17 +03:00
Ruben Ayrapetyan b08e8a3173 Make ecma-values collection extendable (by introducing ecma_append_to_values_collection interface).
Related issue: #311

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-05 16:55:17 +03:00
Andrey Shitov 1aa04a287d Optimize lit_get_magic_string_utf8.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-05 16:22:04 +03:00
Ruben Ayrapetyan 55ffb0cdd1 Fix pass of USE_COMPILER_DEFAULT_LIBC from make (Makefile) to cmake (CMakeLists.txt).
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-08-05 14:49:36 +03:00
Andrey Shitov 24e307481e Optimize block size calculation in functions working with linked list.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-05 14:29:51 +03:00
Peter Gal af56cd8465 Make the string trim method unicode tolerant.
Fixes issue #426

JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-08-04 17:09:45 +02:00
László Langó 57336909cb Fix RegExp matching on right brackets and braces.
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-04 16:52:08 +02:00
László Langó 7a3636b5ce Remove executor steps/match limit from RegExp.
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-04 16:51:13 +02:00
Szilard Ledan 9ab0f23e48 Fix IgnoreCase in RegExp engine
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
2015-08-04 16:29:47 +02:00
László Langó f48ed52209 Implement IgnoreCase in RegExp engine
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-08-04 16:29:47 +02:00
Roland Takacs 1b05cc47ff Add throwing of missing range error to Date.prototype.toISOString()
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-04 16:13:51 +02:00
Roland Takacs 6082c32d45 Refactor to{,UTC,ISO}String methods of the Date object.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-04 16:13:51 +02:00
Roland Takacs 833a5d1a55 Eliminate the year calculation from an infinity value.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-04 15:38:00 +02:00
Roland Takacs 722fd2a989 Remove unneccesary UTC time conversion in the parser of the Date object.
We don't need to convert time to UTC time when the argument is suffixed with 'Z'.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-04 15:10:24 +02:00
Roland Takacs 3151a460fc Support local time output for the Date object.
Convert the primitive time to local time if it is required.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-08-04 15:10:24 +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