Dániel Bátyai
b9e4897c71
Fix the value of the caller property of function instances ( #4258 )
...
We do not support the caller information for functions, and since a
'null' value represents that there has been no caller, the default value
should be changed to 'undefined' to signal that the information is not
available.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-10-01 12:10:11 +02:00
Dániel Bátyai
69d9b2c326
Check that this binding is initialized before forming a super reference ( #4255 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-10-01 11:21:00 +02:00
Zoltan Herczeg
4b2dbd5c21
Correctly set flags of identifiers related to classes ( #4233 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-09-30 12:45:53 +02:00
Dániel Bátyai
9f93b0a8ee
Fix Symbol to Object comparison ( #4226 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-28 16:01:38 +02:00
Robert Fancsik
75385a6045
Improve arguments object ( #4145 )
...
- Enhancement: Arguments object properties are now lazy instantiated
- Bugfix: Mapped arguments object instantiated properties cannot be lcached
- Bugfix: Mapped arguments should be constructed even if 0 formal parameters or arguments are provided
- Update: remove 'caller' property of unmapped arguments object
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-09-28 15:57:58 +02:00
Zoltan Herczeg
32de38198a
Fix invalid free in TypedArray find method. ( #4230 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-09-28 10:48:14 +02:00
Csaba Osztrogonác
c4388e2c19
Fix memory leak in ecma_op_abstract_relational_compare ( #4235 )
...
Fixes #4234 .
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2020-09-28 10:29:25 +02:00
Dániel Bátyai
f58f15077f
Bound names of for-in/of statements cannot contain let ( #4225 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-25 16:33:11 +02:00
Csaba Osztrogonác
de38764e88
Fix heap buffer overflow in Array.prototype.copyWithin ( #4211 )
...
2nd and 3rd argument evaluation of Array.prototype.copyWithin can change
the length of the array as a side-effect. But ES11 spec says that the
algorithm should use the original length. In this case it could happen
that the underlying buffer should be extended.
Fixes #4204
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2020-09-25 15:06:29 +02:00
Zoltan Herczeg
bc64957d19
Properly implement static class fields. ( #4221 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-09-25 14:23:02 +02:00
Péter Gál
0745feb670
Do module cleanup at a later stage ( #4209 )
...
Module info should be freed at a later stage to correctly have
all module data in every step during the execution.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-09-25 14:05:46 +02:00
Dániel Bátyai
629a0e51c4
Legacy octal escapes should not be allowed in template strings ( #4227 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-25 10:14:28 +02:00
Dániel Bátyai
43e03a1ac6
Fix continue label lookup in for statements that have a private scope ( #4224 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-25 10:06:19 +02:00
Zoltan Herczeg
3c723c9bc1
New jerry_get_symbol_description API function ( #4206 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-09-21 10:39:38 +02:00
Dániel Bátyai
55554535b2
Update Promise.all/race to ES11 ( #4202 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-18 14:05:48 +02:00
Dániel Bátyai
74f66879c2
Improve support for built-in native handlers ( #4184 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-09-17 18:35:11 +02:00
Virag Orkenyi
1be9573925
Separate ecma_builtin_helper_string_find_index into two parts ( #3978 )
...
JerryScript-DCO-1.0-Signed-off-by: Virag Orkenyi orkvi@inf.u-szeged.hu
2020-09-17 15:38:36 +02:00
Péter Gál
da2299d277
Convert fast array to normal array when the prototype is changed ( #4198 )
...
If the prototype of a fast array is changed, for example to a Proxy object,
the array should be converted back to a normal array. This is required to
correctly handle any [[Get]]/[[Set]]/etc... calls which should trigger
these method calls on the before mentioned Proxy object.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-09-17 15:23:37 +02:00
Zoltan Herczeg
d9653823ca
Initial implementation of class fields ( #4191 )
...
Missing features:
- this binding in static fields are not supported
- static field evaluation order is wrong
- function names are not supported
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-09-17 15:22:55 +02:00
Rafal Walczyna
7345c83af7
Update TypedArray properties to conform with newest standard ( #4194 )
...
name and length properties has been updated.
Enabling BigInt support in TypedArray.prototype.sort when no
comparefn function is provided.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
2020-09-14 17:32:26 +02:00
Daniella Barsony
c013fade26
Add TypedArray custom dispatcher ( #4040 )
...
JerryScript-DCO-1.0-Signed-off-by: Daniella Barsony bella@inf.u-szeged.hu
2020-09-08 10:05:15 +02:00
Szilagyi Adam
9bffc981cd
Refactor Array.prototype.splice to conform ES11 standard ( #4172 )
...
The algorithm is based on ECMA-262 v11, 22.1.3.28
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-09-08 10:04:13 +02:00
Péter Gál
6f29e48fc6
Correctly handle strict mode in case of Proxy.[[Set]] ( #4180 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-09-08 10:03:27 +02:00
Peter Marki
861bb82749
Update ES6 exclude list: Reflect.enumerate is obsolete since ES2016 ( #4181 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
2020-09-08 10:02:52 +02:00
Péter Gál
f03bf9074f
Correctly set the define property flags during [[Set] in case of Proxy ( #4178 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-09-02 17:34:15 +02:00
Rafal Walczyna
074945dafa
Add missing value release to TypedArray fill method ( #4177 )
...
Value was not freed when error occurs. It caused assertion to fail
when BigInt was used.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
2020-09-01 15:28:12 +02:00
Tóth Béla
ed63665901
Fix whitespaces in BigInt constructor ( #4152 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2020-09-01 15:26:43 +02:00
Robert Fancsik
1fd0cac8c9
Introduce new API function to obtain well-known symbols ( #4163 )
...
- jerry_get_well_known_symbol
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-08-31 10:03:05 +02:00
Robert Fancsik
2f08d8ac08
Fix evaluation order in non-binding destructuring patterns ( #4173 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-08-28 15:13:02 +02:00
Szilagyi Adam
28c186c98f
Refactor ArrayBuffer.prototype.slice to conform ES11 standard ( #4174 )
...
The algorithm is based on ECMA-262 v11, 24.1.4.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-08-28 14:00:49 +02:00
Robert Fancsik
cd1c06510e
Support BigInt64/BigUint64 typedarray creation from API ( #4170 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-08-28 13:14:40 +02:00
Dániel Bátyai
e98f5342f9
Fix leaking lastIndex values in RegExp built-ins ( #4166 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
2020-08-28 13:09:53 +02:00
Robert Fancsik
6d0e948bef
Introduce new API functions to obtain detailed object type information ( #4162 )
...
- jerry_object_get_type
- jerry_function_get_type
- jerry_iterator_get_type
- jerry_value_is_async_function
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-08-28 12:53:56 +02:00
Péter Gál
4ed9e2c033
Correctly report error in for-in start in case of proxies ( #4165 )
...
In case of Proxies the "ownKeys" call can return an incompatible
value for a for-in statement. In such cases the error should be
propagated to the user.
Fixes : #4159
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-08-28 12:46:35 +02:00
kisbg
a470fef8a5
Add length check in copy_within's fast path ( #4168 )
...
fixes #4146
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2020-08-28 10:55:26 +02:00
Szilagyi Adam
2aa5f136a4
Implement String.prototype.replaceAll ( #4088 )
...
The algorithm is based on ECMA-262 v12, 21.1.3.18
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-08-28 10:41:11 +02:00
kisbg
1ec216e573
Fixing test262 built-ins symbol test-cases ( #4123 )
...
The remaining test-cases needs realm feature
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2020-08-27 13:39:04 +02:00
Csaba Osztrogonác
a6cd19fa6e
Annotate test262-esnext-excludelist.xml ( #4171 )
...
Group stage 4 and stage 3 tests by proposals.
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2020-08-27 13:20:18 +02:00
Szilagyi Adam
24753ddd70
Minor fix to ecma_builtin_object_object_define_property ( #4124 )
...
DefineOwnProperty result could be false, and we should throw an error in that case.
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-08-27 09:52:14 +02:00
kisbg
59ab36088f
Check argument is bigint in create_object_arg ( #4142 )
...
fixed #4138
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2020-08-27 09:04:46 +02:00
Szilagyi Adam
138151832a
Minor fix to RegExp.prototype.compile ( #4112 )
...
Fixed tests from the exclude list:
<test id="annexB/built-ins/RegExp/prototype/compile/length.js"><reason></reason></test>
<test id="annexB/built-ins/RegExp/prototype/compile/pattern-regexp-flags-defined.js"><reason></reason></test>
<test id="annexB/built-ins/RegExp/prototype/compile/pattern-regexp-immutable-lastindex.js"><reason></reason></test>
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-08-26 15:16:55 +02:00
Tóth Béla
09c8d28b2c
Implement TrimStart TrimEnd and aliases ( #4102 )
...
Based on: https://tc39.es/ecma262/#sec-string.prototype.trim
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2020-08-25 13:10:36 +02:00
Szilagyi Adam
85981457e6
Implement BigInt64 and BigUint64 typedArrays ( #4151 )
...
Also implemented ToBigInt conversion method based on ECMA-262 v11, 7.1.13
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-08-24 18:03:12 +02:00
Csaba Osztrogonác
55b6b1aed7
Fix memory corruption (bad-free) in ecma_string_pad ( #4164 )
...
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2020-08-24 15:01:49 +02:00
Tóth Béla
1bcfb711a3
Fix BigInt.prototype.toString length ( #4161 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2020-08-24 14:51:03 +02:00
Péter Gál
f2ff0d082f
Correctly release values in TypedArray's toLocaleString ( #4156 )
...
When the `toLocaleString` was called on a TypedArray's value
the resulting object's `toString/valueOf` invocations could
create errors. These error values were not released.
In addition the input element value for the toString operation
was released twice in case of an error.
Fixes : #4148 .
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-08-24 14:50:18 +02:00
Zoltan Herczeg
84bc1e03fb
Detect assignment pattern for for-in/of ( #4140 )
...
Furthermore do not allow default value for rest parameter
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-08-24 14:47:10 +02:00
Zoltan Herczeg
5b3f01af9d
Add missing error support for API functions. ( #4153 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-08-19 11:13:08 +02:00
Csaba Osztrogonác
b828d1c15f
Fix heap-buffer-overflow in ecma_builtin_json_quote ( #4143 )
...
Fixes #4129 .
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
2020-08-18 13:56:01 +02:00
kisbg
d9cb2c60f2
fix check order in ecma_op_abstract_equality_compare ( #4141 )
...
Fixes #4139
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
2020-08-18 13:50:58 +02:00