Dániel Bátyai
279d4d4119
Add handling for RegExp unicode and sticky flags ( #3341 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-22 14:04:03 +01:00
Dániel Bátyai
fc2218e828
Fix weakrefs when adding a key to the same container multiple times ( #3343 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-22 13:55:36 +01:00
Dániel Bátyai
3bf2bc50bc
Properly handle primitive arguments in Object methods ( #3342 )
...
ES2015 allows primitive arguments for most of the Object built-ins.
This change implements handling for these arguments in affected methods.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-22 12:48:10 +01:00
Roland Takacs
996bf76f59
Support ES6 based octal literals ( #3338 )
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2019-11-21 15:13:11 +01:00
Robert Fancsik
2ddf134cef
Add iterator close support for array destructuring ( #3337 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-21 12:55:52 +01:00
Zoltan Herczeg
6b43ef8605
Arrow functions should be parsed as assignment expressions. ( #3336 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-21 11:32:33 +01:00
Péter Gál
aadfa13c38
Improve RegExp compatibility with web browsers ( #3339 )
...
The modification adds support to parse /A{/ like RegExps.
That is: if the iterator is invalid it should be treated as normal
character.
This behaviour is defined in the ES2015 standard Annex B 1.4 point
This only works if the `JERRY_REGEXP_STRICT_MODE` is disabled
(set to zero).
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2019-11-21 10:59:21 +01:00
Robert Fancsik
7f6f562adb
Throw error for using rest parameter in property setter ( #3335 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-20 12:21:05 +01:00
Szilagyi Adam
a0a71da025
Implement toPrimitive method and Date.prototype.toPrimitve ( #3287 )
...
The algorithms are based on ECMA-262 v6 7.1.1 and 20.3.4.45
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-20 11:51:02 +01:00
Szilagyi Adam
c31452c138
Implement IsRegExp operation ( #3321 )
...
Algorithm is based on ECMA-262 v6, 22.1.3.1.1
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-20 11:50:26 +01:00
Dániel Bátyai
bd0cb33172
Implement WeakMap and WeakSet ( #3328 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-19 19:27:31 +01:00
Zoltan Herczeg
70566a52fb
Improve eval call parsing. ( #3330 )
...
Eval calls are recognised when the eval identifier is encapsulated in brackets.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-19 15:55:53 +01:00
Robert Fancsik
a1189cfb62
Add validation for single statement lexical declarations ( #3326 )
...
This patch fixes #3275 and fixes #3276 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-19 15:44:12 +01:00
Robert Fancsik
22766a855e
Implement spread operator for function call arguments ( #3329 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-19 14:06:12 +01:00
Zoltan Herczeg
bf630c0c54
Implement binding pattern support for rest argument and for statement. ( #3327 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-19 14:02:17 +01:00
Szilagyi Adam
a7d129c8b2
Implement Symbol.isConcatSpreadable ( #3307 )
...
Algorithm is based on ECMA-262 v6, 22.1.3.1.1
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-19 13:55:49 +01:00
Zoltan Herczeg
8bdb32cc88
Implement function destructuring argument support. ( #3322 )
...
Furthermore create unmapped arguments objects if a function has a non-simple argument.
A few destructuring pattern issues were fixed as well.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-18 14:15:36 +01:00
Robert Fancsik
fca0c94002
Fix the initialization of let/const patterns when block context is needed. ( #3320 )
...
Also some code cuplication is removed.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-15 14:38:14 +01:00
Robert Fancsik
8eda9bc1c3
Fix the usage of escaped identifiers in scanner_scope_find_let_declaration ( #3317 )
...
This patch fixes #3313 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-14 14:46:01 +01:00
Robert Fancsik
be95aa33b4
Improve delete property with undefined base ( #3312 )
...
This patch finally resolves #2891 also the removes the related bytecode since it has become unnecessary.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-14 13:53:52 +01:00
Robert Fancsik
204de302aa
Fix ecma_op_get_value_lex_env_base for let/const declarations ( #3311 )
...
This patch fixes #3306 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-14 13:52:12 +01:00
Robert Fancsik
213544ae47
Implement array/object destructuring ( #3305 )
...
This patch implements the core functionality of destructuring patterns.
Function argument/for in-of pattern are currently unsupported.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-14 13:49:49 +01:00
Zoltan Herczeg
b4b55a67a2
Fix for propagating arguments reference from nested blocks. ( #3309 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-14 13:48:58 +01:00
Zoltan Herczeg
419ccff611
Fix local variable declaration issues after function argument initialization. ( #3304 )
...
Fixes #3298
Fixes #3299
Fixes #3300
Fixes #3302
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-13 12:35:28 +01:00
Dániel Bátyai
b16b400d5b
Fix cleanup upon error in String.prototype.replace ( #3301 )
...
Fixes #3297
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-12 10:54:26 +01:00
Szilagyi Adam
452c78182d
Implement String.prototype.codePointAt method ( #3291 )
...
The algorithm is based on ECMA-262 v6, 21.1.3.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-11 15:54:49 +01:00
Zoltan Herczeg
da69589f05
Implement for[in/of]-let construct. ( #3294 )
...
This patch implements let/const support for all "for" statements.
It includes an algorithm for cloning declarative lexical environments.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-11 13:53:32 +01:00
Zoltan Herczeg
58f71e6ffa
Implement left-hand-side expression parsing. ( #3292 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-08 16:20:24 +01:00
Szilagyi Adam
798655a871
Implement Array.prototype's copyWithin method ( #3269 )
...
The algorithm is based on ECMA-262 v6, 22.1.3.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-08 15:41:20 +01:00
Zoltan Herczeg
dc458111ba
Local functions should not be created globally. ( #3290 )
...
Fixes #3286 .
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-08 14:03:19 +01:00
Szilagyi Adam
35d9b1ab17
Implement String.fromCodePoint method ( #3281 )
...
The algorithm is based on ECMA-262 v6, 21.1.2.2
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-11-08 13:48:05 +01:00
Zoltan Herczeg
e1fc90db0e
Delay the variable construction in the function body. ( #3289 )
...
Local variables inside the function body should be constructed after the
parameters are initialized. Furthermore arguments should be available
during parameter initialization.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-08 12:18:23 +01:00
Dániel Bátyai
923fd128b5
Refactor String.prototype.replace ( #3284 )
...
This change brings the replace operation up to date with ES6 by
implementing support for the @@replace well-known symbol, while
also improving performance and memory usage.
Also fixes #3070 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2019-11-08 12:15:28 +01:00
Robert Fancsik
f48f926a39
[[HasOwnProperty]] should update the lex-env binding of argument objects ( #3283 )
...
This patch fixes #3271 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-07 11:24:07 +01:00
Csaba Osztrogonác
44b1b9855d
Make run-tests --jerry-tests --jerry-test-suite work on Windows too ( #3260 )
...
Changes:
* Bash based runners/run-test-suite.sh runner replaced with a python runner
* Common util functions moved to util.py
* Fixed EOL issues in tests directory
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2019-11-06 15:12:50 +01:00
Robert Fancsik
525c35f148
Introduce jerry_get_resource_name API function ( #3236 )
...
This new API function adds possibility to query the resource name of the currently executed script (including modules) or a function object.
This patch closes #2170 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-06 15:05:49 +01:00
Csaba Osztrogonác
55423ab82a
Simplify ecma_builtin_date_parse function ( #3280 )
...
This PR is the preparation of the #2946 issue.
(Date.parse() should handle UTC date string format)
Changes:
- Handle min/max values in ecma_date_parse_date_chars function instead of code duplication
- Parse special characters in the new ecma_date_parse_special_char function
- Additionally fixed two parsing issue: invalid formats should be refused
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2019-11-06 14:51:17 +01:00
Ádám Kallai
a8b627a80c
Implement Object.is routine from ES2015 specification ( #3272 )
...
Related part of the standard: ECMA-262 v6, 19.1.2.10
JerryScript-DCO-1.0-Signed-off-by: Adam Kallai [email protected]
2019-11-05 19:38:13 +01:00
Zoltan Herczeg
ab8fa74b86
Correctly handle variables imported or exported by modules. ( #3270 )
...
Remove var declaration workarounds and correctly create / use variables for modules.
Still missing: create lexical environment for automatic module conversion.
(Or remove this feature overall.)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-11-04 16:51:26 +01:00
Robert Fancsik
6f83da4c0b
Implement the spread operator for array initialization ( #3265 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-04 16:36:58 +01:00
Robert Fancsik
fc3cfc4fdc
Arrow functions "prototype" property should not be lazy listed ( #3268 )
...
This patch fixes #3267 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-11-04 12:12:01 +01:00
Robert Fancsik
f93fa98a75
Add Number.{EPSILON, {MAX,MIN}_SAFE_INTEGER} to the builtin descriptor ( #3258 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-10-31 15:06:19 +01:00
Robert Fancsik
eee41ec734
Support \u200C \u200D unicode characters ( #3266 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-10-31 11:14:13 +01:00
Zoltan Herczeg
6a342fcdd6
Implement throwing ReferenceErrors for let/const variables. ( #3264 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-10-31 11:09:02 +01:00
Robert Fancsik
d1faed7d03
Properly release callback result in ecma_builtin_typedarray_prototype_exec_routine ( #3263 )
...
This patch fixes #3262 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-10-31 11:08:16 +01:00
Zoltan Herczeg
1edfa81c76
Implement correct construction of let/const declarations and function statements. ( #3259 )
...
Various cbc opcodes are added to support the different instantiations.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2019-10-30 16:01:55 +01:00
Daniella Barsony
11818f1cb0
Fix issue about Number.prototype.toString ( #3232 )
...
Fixes #3229
JerryScript-DCO-1.0-Signed-off-by: Daniella Barsony [email protected]
2019-10-29 08:35:55 +01:00
Robert Fancsik
87f60da14f
Add arithmetic operations support for the API ( #3249 )
...
This patch extends the jerry_binary_operation_t list with arithmetic operations.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-10-28 15:46:35 +01:00
Robert Fancsik
448c239f08
Export statement parsing should construct new ident literal ( #3256 )
...
This patch fixes #3253 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2019-10-28 15:30:47 +01:00
Szilagyi Adam
072aedb4ef
Fix wrong error handling in ecma_builtin_function_helper_get_function_arguments ( #3257 )
...
Fixes #3252
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-10-28 14:23:53 +01:00