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
Peter Gal
c8a16f2107
Improve Function constructor argument handling.
...
For the Function constructor it is possible to pass the
name of the function arguments in one or more strings, and
each argument name should be separated with a comma.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-07-15 15:33:10 +03:00
Roland Takacs
292d99ba4e
Fix assertion 'bytes_copied > 0' in JSON.stringify()
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2015-07-15 13:48:11 +03:00
Ruben Ayrapetyan
7ccec19c26
Fix strict mode in an object initializer's getters / setters definition.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 13:32:02 +03:00
Andrey Shitov
4f58104981
Fix checking of semicolons in expression statements.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-15 13:15:25 +03:00
Ruben Ayrapetyan
0e8cb596d7
Fix parse of preincrement / predecrement, applied to 'obj.prop'-like expressions.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 13:04:02 +03:00
Ruben Ayrapetyan
6fe78cc994
Temporary workaround (until parser is refactored) for fixing evaluation of simple 'identifier'-like expressions.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 12:52:42 +03:00
Ruben Ayrapetyan
5e329c815c
Fix syntax checking of large object literals.
...
Related issue: #354
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 12:41:56 +03:00
Ruben Ayrapetyan
73d082aa55
Fix parse of delete operator.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 12:34:51 +03:00
Ruben Ayrapetyan
c120433158
Fix handling of EOF in insert_semicolon.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-15 12:31:47 +03:00
Zsolt Borbély
1e90f833f7
Implement Function.prototype.bind function
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
2015-07-15 08:39:35 +02:00
Ruben Ayrapetyan
92bf7859af
Put lexer_init after setjmp in parser_parse_program, as lexer_init could raise an early error.
...
Related issues: #341
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-14 18:42:49 +03:00
Zoltan Herczeg
69655f4456
Implement toLowerCase and toUpperCase built-in functions.
...
Related issue: #323
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-07-14 07:01:47 -07:00
Ruben Ayrapetyan
aa415c670e
Fix initialization of 'this' argument in 'call_n' opcode handler.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-13 19:31:07 +03:00
Ruben Ayrapetyan
c84d31ce9e
Fix sign of number remainder (ecma_op_number_remainder).
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-13 19:21:46 +03:00
Ruben Ayrapetyan
f8770020f7
Update RegExp.prototype.exec so that it returns 'null' instead of 'undefined' in case argument doesn't match corresponding regular expression.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-13 19:05:37 +03:00
Ruben Ayrapetyan
8aa2571699
Fix NaN handling in ecma_op_same_value.
...
Related issue: #130
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-13 18:57:38 +03:00
Ruben Ayrapetyan
710a18d6af
Add 'length' property of String.prototype built-in object.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-13 18:49:45 +03:00
László Langó
9c559216b7
Primitive value of Date.prototype should be NaN
...
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-10 13:31:31 +02:00
László Langó
122e5c47c9
Fix assertion in RegExp bytecode realloc.
...
Assertion '!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p' failed in realloc_regexp_bytecode_block
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-10 10:23:09 +02:00
László Langó
9b24d8fd7a
Implement Date.prototype.toString
...
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-10 09:43:19 +02:00
László Langó
6e8f7b6e59
Assertion fix in RegExp.
...
Assertion 'mem_pools == NULL' failed in mem_pools_finalize
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-10 09:33:23 +02:00
Andrey Shitov
dbf3708255
Fix concatenating of surrogates.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-10 10:23:20 +03:00
Kristof Kosztyo
9fc1958903
Fix the builtin Math.min and Math.max function
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo [email protected]
2015-07-10 09:11:43 +02:00
Szilard Ledan
8d7cdebee0
Implement builtin getters for Date object
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan [email protected]
2015-07-09 17:04:54 +02:00
Laszlo Vidacs
6d86c4b2e1
Implement String.prototype.substring()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs [email protected]
2015-07-08 12:57:17 +02: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
László Langó
c12914c71a
Implement Date constructor.
...
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-08 11:07:23 +02:00
Laszlo Vidacs
632618da99
Implement String.prototype.charAt()
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs [email protected]
2015-07-08 10:26:28 +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
László Langó
4f108ab401
Implement Date.UTC and add a dummy implementation for Date.now
...
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-07 15:43:33 +02:00
Zoltan Herczeg
06b4490ea1
Optimize encode/decode URI for valid UTF-8 input.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-07-07 04:50:01 -07:00
Zoltan Herczeg
d1a5f7fc87
Implement JSON built-in object
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2015-07-07 04:39:39 -07:00
László Langó
cadc8f40d4
Implement Date.parse
...
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-07 08:25:29 +02:00
Kristof Kosztyo
2bfb9b9ae4
Fix ecma_op_array_object_define_own_property
...
JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo [email protected]
2015-07-06 16:29:42 +02:00
László Langó
e9a5b34d1d
Assertion fix for missing class names.
...
Assertion 'builtin_id == ECMA_BUILTIN_ID_TYPE_ERROR_THROWER' failed in ecma_object_get_class_name.
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
2015-07-06 15:29:28 +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
Peter Gal
4e5e7bb4c8
Set global object's prototype
...
The global object should have the same prototype
as a simple object.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-07-06 11:01:02 +02:00
Peter Gal
e154156cf4
Fix element indexing for Object.keys/Object.getOwnPropertyNames
...
Previously the index was incremented even if an internal property
or a non enumerable property was found.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-07-06 10:43:15 +02:00
Peter Gal
c9bbec7683
Fix assert in ecma_op_function_declaration
...
Minor code rework as the ecma_op_object_define_own_property
call returns a 'true' simple value on success.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2015-07-06 10:25:12 +02:00
Andrey Shitov
ae3eea8ae8
Add functions for iterating utf-8 strings.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-03 13:24:27 +03:00
Evgeny Gavrin
0787d76b62
Fix generation of empty completion value in ecma_reject_put.
...
Related issue: #114
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
2015-07-02 19:31:38 +03:00
Evgeny Gavrin
69fe6199c0
Add syntax check for return from global scope/eval.
...
Related issue: #129
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
2015-07-02 19:12:41 +03:00
Ruben Ayrapetyan
0c7801b996
Fix setup of argument variables in case parameter names are duplicated.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-01 15:07:00 +03:00
Ruben Ayrapetyan
134491453b
Fix ecma_op_get_value_object_base (GetValue, 8.7.1) for case HasPrimitiveBase (ref) is true.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-01 14:57:06 +03:00
Ruben Ayrapetyan
b45302ee07
Fix propagation of strict mode.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-07-01 14:44:12 +03: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
Ruben Ayrapetyan
71bac03d51
Fix construction of Arguments object: add handler for 'caller' property that throws TypeError upon read or write access.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-06-30 19:18:53 +03:00
Ruben Ayrapetyan
ec02ace0e9
Fix syntax check for duplicate parameter names in a strict mode function.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
2015-06-30 15:22:21 +03:00