Andrey Shitov
d6ad1c467e
Fix semicolon check after variable declaration list.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-08-11 14:23:11 +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 zherczeg@inf.u-szeged.hu
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 chunseok.lee@samsung.com
2015-08-11 15:02:56 +09:00
Szilard Ledan
e22a085fc1
Implement RegExp octal support
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
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 dbatyai.u-szeged@partner.samsung.com
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 zherczeg@inf.u-szeged.hu
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 rtakacs.u-szeged@partner.samsung.com
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 dbatyai.u-szeged@partner.samsung.com
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 dbatyai.u-szeged@partner.samsung.com
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 zsborbely.u-szeged@partner.samsung.com
2015-08-07 16:07:27 +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ó llango.u-szeged@partner.samsung.com
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ó llango.u-szeged@partner.samsung.com
2015-08-06 15:00:38 +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 kkosztyo.u-szeged@partner.samsung.com
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 pgal.u-szeged@partner.samsung.com
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 rtakacs.u-szeged@partner.samsung.com
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 zsborbely.u-szeged@partner.samsung.com
2015-08-06 13:05:33 +02:00
Zoltan Herczeg
2630048ecc
Fixes for URI decoding.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
2015-08-06 03:52:16 -07:00
Dániel Bátyai
c17197dcab
Handle Unicode characters in parseFloat()
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
2015-08-06 10:38:03 +02:00
Zsolt Borbély
9cc706d21d
Enable tests after #435 .
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-08-06 09:12:57 +02:00
Laszlo Vidacs
554305d88c
Implement String.prototype.lastIndexOf()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-08-06 08:52:09 +02:00
Peter Gal
af56cd8465
Make the string trim method unicode tolerant.
...
Fixes issue #426
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
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ó llango.u-szeged@partner.samsung.com
2015-08-04 16:52:08 +02:00
Roland Takacs
1b05cc47ff
Add throwing of missing range error to Date.prototype.toISOString()
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
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 rtakacs.u-szeged@partner.samsung.com
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 rtakacs.u-szeged@partner.samsung.com
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 rtakacs.u-szeged@partner.samsung.com
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 dbatyai.u-szeged@partner.samsung.com
2015-08-04 14:53:59 +02:00
Szilard Ledan
6ec05ff07f
Refactor and cleanup the RegExp parser
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-08-04 14:45:37 +02:00
Zoltan Herczeg
0a1b6eb4c7
Implement String.prototype.search, and some minor regexp refactors.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
2015-08-04 05:14:11 -07:00
Ruben Ayrapetyan
c41f76aba2
Support up to 65535 items in object / array literals.
...
Related issue: #276
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-08-03 15:54:53 +03:00
Roland Takacs
b5923ccd9d
Fix [[Construct]] call for Date()
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
2015-08-03 09:06:16 +02:00
Ruben Ayrapetyan
c715a7cd1d
Change 'assert' handle to pass only upon exactly 1 argument is received, and the argument is boolean true; update internal test suite correspondingly.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-07-30 17:05:26 +03:00
László Langó
5d385b1144
Fix properties of RegExp prototype
...
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
2015-07-30 15:25:53 +02:00
Roland Takacs
144c3ba874
Fix assertion 'mem_pools == NULL' in the Date constructor.
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
2015-07-30 13:35:06 +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 dbatyai.u-szeged@partner.samsung.com
2015-07-30 13:03:05 +02:00
Zoltan Herczeg
048e20925e
Implement String.prototype.replace function.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
2015-07-30 03:55:50 -07: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 dbatyai.u-szeged@partner.samsung.com
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 dbatyai.u-szeged@partner.samsung.com
2015-07-30 09:31:49 +02:00
Kristof Kosztyo
8cd1ade515
Fix primitive value handling in Date constructor
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
2015-07-29 15:08:55 +02:00
Peter Gal
801e8e34cd
Test lastIndex calculation for exec calls
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-07-29 11:20:13 +02:00
Peter Gal
3fbe54393f
Make parseInt unicode tolerant.
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-07-28 18:36:39 +02:00
Andrey Shitov
9766feda2e
Change jerry_api_string_to_char_buffer so it doesn't add '\0' to the end of output buffer.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-07-28 15:54:55 +03:00
Ruben Ayrapetyan
502f4c4623
Split opcode and instruction entities and perform related renamings: opcode_t is now vm_instr_t, opcode position is instruction position, etc.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-07-28 13:43:43 +03:00
Ruben Ayrapetyan
1990762cf0
Add opcode description table containing an opcode's name, name and possible type of the opcode's arguments.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-07-28 13:43:43 +03:00
Peter Gal
25450d8a12
Error constructor prototypes should be Function
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-07-28 12:16:38 +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 dbatyai.u-szeged@partner.samsung.com
2015-07-28 12:04:41 +02:00
Szilard Ledan
b5da46f2aa
Fix segmentation fault in Date helper functions
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-07-28 10:19:56 +02:00
Peter Gal
e34ab90e61
RegExp: treat undefined argument as empty.
...
new RegExp() and new RegExp(undefined) calls now results in the
same 'source' pattern.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
2015-07-27 15:58:38 +02:00
Roland Takacs
336db40ed0
Segmentation fault in JSON.stringify()
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
2015-07-27 15:29:55 +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 dbatyai.u-szeged@partner.samsung.com
2015-07-27 10:41:50 +02:00