Szilagyi Adam
4cbc77d709
Update detached arraybuffer handling ( #4840 )
...
- Fix isValidIntegerIndex usage in IntegerIndexed objects, [[Get]], [[Set]], [[DefineOwnProperty]] internal methods.
- The test262 revision is updated to the latest master hash.
- The PR is not separated into individual PRs since the standard change couldn't be tested without the new test262 revision.
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-12-10 13:09:16 +01:00
Szilagyi Adam
70e275e92f
Implement ECMAScript 2022 private class methods and fields ( #4831 )
...
Co-authored-by: Robert Fancsik [email protected]
Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-11-26 12:24:59 +01:00
Szilagyi Adam
6ec4455111
Implement Symbol.matchAll ( #4082 )
...
The following methods were implemented:
- String.prototype.matchAll based on ECMA-262 v11, 21.1.3.12
- RegExp.prototype[@@matchAll] based on ECMA-262 v11, 21.2.5.8
- RegExp String Iterator Object based on 21.2.7
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-01-18 18:08:35 +01:00
Szilagyi Adam
df6d430289
Refactor ecma_builtin_global_object_unescape ( #4115 )
...
based on ECMA-262 v11, B.2.1.2
Fixed tests from the exclude list:
* annexB/built-ins/unescape/four-ignore-bad-u.js
* annexB/built-ins/unescape/four.js
* annexB/built-ins/unescape/two.js
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-01-14 16:16:32 +01: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 [email protected]
2020-09-08 10:04:13 +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 [email protected]
2020-08-28 14:00:49 +02:00
Szilagyi Adam
9589771f7a
Refactor ecma_op_check_object_coercible ( #4169 )
...
The method returns bool now instead of an ecma_value_t
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-08-28 13:12:50 +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 [email protected]
2020-08-28 10:41:11 +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 [email protected]
2020-08-27 09:52:14 +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 [email protected]
2020-08-26 15:16:55 +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 [email protected]
2020-08-24 18:03:12 +02:00
Szilagyi Adam
b82bd76175
Minor fixes to ecma_builtin_object_prototype_define_getter_setter ( #4104 )
...
Fixed tests from the exclude list:
annexB/built-ins/Object/prototype/__defineGetter__/define-non-configurable.js
annexB/built-ins/Object/prototype/__defineGetter__/define-non-extensible.js
annexB/built-ins/Object/prototype/__defineGetter__/getter-non-callable.js
annexB/built-ins/Object/prototype/__defineGetter__/this-non-obj.js
annexB/built-ins/Object/prototype/__defineSetter__/define-non-configurable.js
annexB/built-ins/Object/prototype/__defineSetter__/define-non-extensible.js
annexB/built-ins/Object/prototype/__defineSetter__/setter-non-callable.js
annexB/built-ins/Object/prototype/__defineSetter__/this-non-obj.js
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-08-05 12:06:28 +02:00
Szilagyi Adam
019dd03fcc
Implement JSON superset ( #4099 )
...
JSON strings can contain unescaped LINE SEPARATOR and PARAGRAPH SEPARATOR in ES11
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-08-04 16:56:08 +02:00
Szilagyi Adam
945b22976a
Implement Object.prototype.{__lookupGetter__, __lookupSetter__} ( #4039 )
...
__lookupGetter__ is based on ECMA-262 v11, B.2.2.4
__lookupSetter__ is based on ECMA-262 v11, B.2.2.5
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-08-04 16:41:05 +02:00
Szilagyi Adam
b4a4619a6c
Implement Object.prototype.{__defineGetter__, __defineSetter__} ( #4032 )
...
__defineGetter__ is based on ECMA-262 v11, B.2.2.2
__defineSetter__ is based on ECMA-262 v11, B.2.2.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-30 16:34:43 +02:00
Szilagyi Adam
a4312d614f
Fix prototype chain traversal in ecma_op_object_put_with_receiver ( #4066 )
...
The ECMA_OBJECT_IS_PROXY(proto_p) check is necessary throughout the prototype chain
not just at the beginning
Fixes #4045
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-30 14:35:18 +02:00
Szilagyi Adam
ff36f3579d
Implement %TypedArray%.prototype.includes ( #4025 )
...
The algorithm is based on ECMA-262 v11, 22.2.3.13
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-27 18:09:39 +02:00
Szilagyi Adam
ff47c84bc4
Rework Object's [[OwnPropertyKeys]] ( #4001 )
...
I've removed the ecma_op_object_get_property_names method, and implemented the following ones:
- ecma_op_object_own_property_keys: this is now the internal [[OwnPropertyKeys]] method
- ecma_op_object_enumerate: this is used for the for-in iterator
- ecma_object_sort_property_names: this is used for sorting the property names of an object
- ecma_object_list_lazy_property_names: this is for getting the lazy instantiated properties
- ecma_object_prop_name_is_duplicated: this is for checking if a given property is duplicated in an object
Also the for-in operation with Proxy object works with this patch, #3992 should be closed
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-27 11:37:04 +02:00
Szilagyi Adam
da5b058dec
Fix argument boundary check order during number format conversion ( #4031 )
...
Also added some tests related to the issues caused by the wrong order
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-24 15:55:12 +02:00
Szilagyi Adam
54bfd2ba37
Implement Promise.prototype.onFinally ( #3987 )
...
The algorith is based on ECMA-262 v11, 25.6.5.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-24 12:54:16 +02:00
Szilagyi Adam
04f0a7a670
Add missing error check to ecma_builtin_regexp_prototype_compile ( #4022 )
...
Fixes #4017
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-21 16:06:35 +02:00
Szilagyi Adam
2fac7cc85e
Refactor Number.prototype methods toFixed, toExponential, toPrecision ( #3911 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-21 12:46:03 +02:00
Szilagyi Adam
33359ac506
Implement UnicodeEscape abstract method ( #3959 )
...
Also refactored ecma_builtin_json_quote to use the method above
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-20 13:51:06 +02:00
Szilagyi Adam
e8c5c46894
Implement Symbol.prototype.description ( #3995 )
...
The algorithm is based on ECMA-262 v11, 19.4.3.2
Also added a custom dispatcher for the Symbol prototype
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-20 13:47:25 +02:00
Szilagyi Adam
604cfaced4
Implement Array.prototype.includes ( #3991 )
...
The algorithm is based on ECMA-262 v11, 22.1.3.13
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-15 19:21:24 +02:00
Szilagyi Adam
9dbbcab49d
Remove ecma_op_object_get_own_data_prop and use ecma_op_object_get_by_magic_id instead ( #3969 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-13 12:12:46 +02:00
Szilagyi Adam
dfabfe7a56
Add missing isArray checks based on the ES11 standard ( #3983 )
...
Added checks to the following methods:
- ecma_builtin_json_stringify, ECMA-262 v11, 24.5.2
- ecma_builtin_json_internalize_property, ECMA-262 v11, 24.5.1.1
Fixes #3945
Fixes #3950
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-10 16:06:27 +02:00
Szilagyi Adam
69f917650e
Update parser early return type in ESNEXT ( #3742 )
...
This patch updates the early return types in the parser to SyntaxError instead of ReferenceError
in ESNEXT
This patch also includes a lot of tests for LeftHandSideExpression validation when using the = operator
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-06 13:36:28 +02:00
Szilagyi Adam
97fc48132a
Use the Invoke method where the ES10 standard says ( #3963 )
...
We can apply this change to methods which use older standards, because
of the backward compatibility the result is the same
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-06 09:05:04 +02:00
Szilagyi Adam
392ee71712
Remove ECMA_TRY_CATCH macro ( #3829 )
...
also refactored the touched methods a little bit
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-03 15:06:49 +02:00
Szilagyi Adam
cd1e067671
Update Promise.race and Promise.all to ES11 ( #3954 )
...
Changes based on ECMA-262 v11, 25.6.4.4 and 26.6.4.1 step 3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-07-02 11:46:07 +02:00
Szilagyi Adam
c0b594fa69
Remove duplicate is_object check when calling ecma_op_to_primtive ( #3899 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-30 13:18:40 +02:00
Szilagyi Adam
0f0041d720
Make the Set.prototype values, keys and [@@iterator] methods to be one intrinsic method ( #3777 )
...
After this patch these methods will be the same function objects
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-18 13:59:31 +02:00
Szilagyi Adam
16750e8171
Use stringbuilder in ecma_builtin_helper_object_to_string ( #3807 )
...
Also added steps 4-6 from ECMA-262 v6, 19.1.3.6
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-18 13:55:55 +02:00
Szilagyi Adam
5e34a5e978
Refactor ecma_builtin_global_object_decode_uri_helper ( #3895 )
...
The main change is the usage of stringbuilder
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-18 11:19:52 +02:00
Szilagyi Adam
0fa07c1275
Refactor ecma_builtin_global_object_encode_uri_helper ( #3890 )
...
The main change is the usage of stringbuilder
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-18 11:11:19 +02:00
Szilagyi Adam
59b8e91c39
Refactor ecma_builtin_global_object_escape ( #3887 )
...
The main change is the usage of stringbuilder
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-18 11:10:06 +02:00
Szilagyi Adam
4c53c94341
Fix value release in vm_loop for Proxy for-in cases ( #3874 )
...
Fixes #3868
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-08 10:29:06 +02:00
Szilagyi Adam
90fd881fda
Fix TypedArray initialization with another TypedArray ( #3850 )
...
Fixes #3836
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-08 10:28:42 +02:00
Szilagyi Adam
358101f27f
Fix string dereference in ecma_op_create_dynamic_function ( #3873 )
...
Fixes #3862
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-08 10:23:26 +02:00
Szilagyi Adam
252cfb0876
Fix length check for Array.prototype indexOf, lastIndexOf and fill ( #3798 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-06-05 12:20:26 +02:00
Szilagyi Adam
7a20150ae7
Fix error handling in Reflect.defineProperty ( #3800 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-27 18:57:15 +02:00
Szilagyi Adam
edaf4ef30f
Rework the Reflect.preventExtensions method ( #3771 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-25 18:25:09 +02:00
Szilagyi Adam
843c542053
Rework the Reflect.setPrototypeOf method ( #3774 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-25 18:24:04 +02:00
Szilagyi Adam
e50e2719df
Get the typedArray's length property properly in Array.prototype.concat ( #3791 )
...
We should use the "length" property instead of the internal arraybuffer's length
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-25 18:10:38 +02:00
Szilagyi Adam
ecf159795a
Rework the Reflect.defineProperty method ( #3770 )
...
Also a minor update to the FromPropertyDescriptor operation since in ES6 we can use a property
descriptor whitout any keys
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-25 18:09:37 +02:00
Szilagyi Adam
f06c533a29
Change the Reflect.ownKeys method's length property ( #3775 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-25 12:59:51 +02:00
Szilagyi Adam
e1960621f3
Add new target support to RegExp object ( #3723 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-20 17:10:55 +02:00
Szilagyi Adam
95aa827635
Fix value release in ecma_builtin_regexp_dispatch_helper ( #3702 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-14 17:10:27 +02:00
Szilagyi Adam
050fbfc130
Add Proxy support for JSON.stringify ( #3685 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-11 15:18:18 +02:00
Szilagyi Adam
094ba2f30a
Update the Array.prototype.reverse method to support ES6 version ( #3676 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-11 13:42:46 +02:00
Szilagyi Adam
97a35b0f10
Add new target support to Function object ( #3708 )
...
Added steps 1, 2.c, 3.c, 21, 22 to ecma_op_create_dynamic_function
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-11 13:40:50 +02:00
Szilagyi Adam
409e1fec5f
Add missing index incrementation to ecma_builtin_string_object_raw ( #3709 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-04 15:08:14 +02:00
Szilagyi Adam
b5d9699788
Update the RegExp.prototype.test function to support ES6 version ( #3693 )
...
The algorithm is based on ECMA-262 v6, 21.2.5.13
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-04 14:10:56 +02:00
Szilagyi Adam
1a72e070c8
Add value/key sign swap for Set.add and Map.set methods ( #3681 )
...
See also: ECMA-262 v6, 23.2.3.1 step 6 and 23.1.3.9 step 6
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-05-04 14:00:36 +02:00
Szilagyi Adam
2bdd0f5008
Accessor functions do not have [[Construct]] internal method ( #3698 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-04-29 13:04:57 +02:00
Szilagyi Adam
62730f2ae1
Implement Proxy object [[DefineOwnProperty]] internal method ( #3662 )
...
The algorithm is based on ECMA-262 v6, 9.5.6
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-04-28 09:51:01 +02:00
Szilagyi Adam
d82bbb1c77
Update the isArray operation to handle proxy objects ( #3666 )
...
Added step 3. from ECMA-262 v6, 7.2.2
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-04-15 12:00:15 +02:00
Szilagyi Adam
4342c9ea6f
Implement Proxy object [[OwnPropertyKeys]] internal method ( #3639 )
...
The algorithm is based on ECMA-262 v6, 9.5.12
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-04-14 16:57:47 +02:00
Szilagyi Adam
901e57c7d0
Implement Proxy object [[Construct]] internal method ( #3657 )
...
The algorithm is based on ECMA-262 v6, 9.5.14
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-04-06 12:17:23 +02:00
Szilagyi Adam
4240b740aa
Implement Object.prototype.__proto__ accessor property ( #3546 )
...
We are using the already existing Object.getPrototypeOf and
Object.setProtoypeOf methods
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-27 14:46:51 +01:00
Szilagyi Adam
94b8b4bb7b
Implement Proxy object [[HasProperty]] internal method ( #3642 )
...
The algorithm is based on ECMA-262 v6, 9.5.7
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-27 14:33:56 +01:00
Szilagyi Adam
6a022eb265
Implement Proxy object [[setPrototypeOf]] internal method ( #3631 )
...
The algorithm is based on ECMA-262 v6, 9.5.2
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-27 11:10:55 +01:00
Szilagyi Adam
d539d30bf9
Update the RegExp constructor to ECMA-262 v6 ( #3538 )
...
The following methods have been implemented:
- RegExpAlloc, based on ECMA-262 v6, 21.2.3.2.1
- RegExpInitialize, based on ECMA-262 v6, 22.2.3.2.2
- RegExpCreate, based on ECMA-262 v6, 21.2.3.2.3
Co-authored-by: Robert Fancsik [email protected]
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-27 10:37:06 +01:00
Szilagyi Adam
56832d772e
Implement Proxy object [[getPrototypeOf]] internal method ( #3623 )
...
The algorithm is based on ECMA-262 v6, 9.5.1
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-26 14:22:12 +01:00
Szilagyi Adam
b2e54e915b
Implement Proxy object [[Delete]] internal method ( #3616 )
...
The algorithm is based on ECMA-262 v6, 9.5.10
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-18 16:52:24 +01:00
Szilagyi Adam
85fced2632
Impelement Proxy object [[preventExtensions]] internal method ( #3620 )
...
The algorithm is based on ECMA-262 v6, 9.5.4
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-18 16:51:02 +01:00
Szilagyi Adam
7ea93aff4c
Fix assignment validation in parser_append_binary_token ( #3594 )
...
Fixes #3589
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-16 15:02:37 +01:00
Szilagyi Adam
bc7c39d893
Implement helper method for Proxy object internals ( #3612 )
...
This method generally does the steps 2-5 in the proxy internal methods
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-16 14:47:04 +01:00
Szilagyi Adam
56b9f098ab
Impement Proxy object [[isExtensible]] internal method ( #3599 )
...
The algorithm is based on ECMA-262 v6, 9.5.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-15 13:26:23 +01:00
Szilagyi Adam
ccca998f43
Implement Proxy object [[Set]] internal method ( #3605 )
...
The algorithm is based on ECMA-262 v6, 9.5.9
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-14 20:06:27 +01:00
Szilagyi Adam
64fd37d1db
Implement Proxy object [[Get]] internal method ( #3604 )
...
The algorithm is based on ECMA-262 v6, 9.5.8
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-11 15:34:46 +01:00
Szilagyi Adam
651b62584a
Use stringbuilder in jerry_debugger_exception_object_to_string ( #3586 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-04 18:06:40 +01:00
Szilagyi Adam
23974e2389
Use stringbuilder in ecma_raise_standard_error_with_format ( #3585 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-04 18:05:08 +01:00
Szilagyi Adam
76bbb088e9
Optimize Array.prototype.fill for fast-array cases ( #3569 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-03 15:48:50 +01:00
Szilagyi Adam
aa17a4fa5d
Implement ecma_stringbuilder_create_raw method for stringbuilder ( #3584 )
...
With this new method, we can create a stringbuilder from a raw string
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-02 15:39:12 +01:00
Szilagyi Adam
a6acf2d417
Fix value release in ecma_builtin_array_prototype_object_copy_within ( #3583 )
...
Fixes #3580
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-03-02 10:28:02 +01:00
Szilagyi Adam
6430d1a3a3
Use stringbuilder in static_snapshot_error_unsupported_literal ( #3574 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-24 11:34:07 +01:00
Szilagyi Adam
cdbabc8c30
Use stringbuilder in ecma_builtin_try_to_instantiate_property ( #3575 )
...
Also removed the ecma_append_magic_string_to_string method,
because it doesn't get used anymore.
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-24 11:19:04 +01:00
Szilagyi Adam
acbdb4184f
Use stringbuilder in ecma_builtin_typedarray_prototype_join ( #3573 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-24 11:15:36 +01:00
Szilagyi Adam
b0a575b049
Use stringbuilder in vm_get_backtrace ( #3566 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-20 13:01:04 +01:00
Szilagyi Adam
f8da3d5e9d
Remove vm_init_loop ( #3551 )
...
For every bytecode in the above function, i created a new VM_OC group code
to be able to execute them in the vm_loop. With this update, the expectation
is a faster runtime.
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-19 16:49:35 +01:00
Szilagyi Adam
181570ff41
Implement EscapeRegExpPattern method ( #3543 )
...
the algorithm is based on ECMA-262 v6, 21.2.3.2.4
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-18 09:49:54 +01:00
Szilagyi Adam
44e63e038d
Use stringbuilder in ecma_get_symbol_descriptive_string ( #3560 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-18 09:47:53 +01:00
Szilagyi Adam
4d67ac3225
Use stringbuilder in ecma_builtin_string_prototype_object_concat ( #3557 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-13 17:42:07 +01:00
Szilagyi Adam
8cd5d06620
Update ecma_op_typedarray_from to use iterable objects ( #3501 )
...
Added steps 6-8 from ECMA-262 v6, 22.2.2.1.1
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-02-13 15:53:41 +01:00
Szilagyi Adam
2fe06f82f1
Add strict mode check to for-in and for-of header in parser_parse_for_statement_start ( #3513 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-28 13:24:30 +01:00
Szilagyi Adam
c407e8a04c
Refactor ecma_builtin_error_prototype_object_to_string to use stringbuilder ( #3503 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-10 15:40:00 +01:00
Szilagyi Adam
aedd55b1f8
Add unscopables check to ecma_op_get_value_lex_env_base ( #3476 )
...
Also added a special test case for this to symbol-unscopables.js
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-07 15:13:28 +01:00
Szilagyi Adam
22e52e45af
Fix value release in ecma_builtin_typedarray_prototype_map ( #3491 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-07 14:25:59 +01:00
Szilagyi Adam
40b38f70ef
Refactor ecma_regexp_exec_helper arguments ( #3484 )
...
We use pointers instead of ecma_value_t
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-06 14:38:09 +01:00
Szilagyi Adam
183600dff2
Refactor ecma_op_same_value ( #3486 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2020-01-06 14:33:46 +01:00
Szilagyi Adam
7bfbc701d8
Implement Symbol.unscopables ( #3405 )
...
Added a new property for Array.prototype based on ECMA-262 v6, 22.1.3.31
Also upgraded the HasBinding operation with ECMA-262 v6, 8.1.1.2.1 steps 7-9
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-19 16:34:23 +01:00
Szilagyi Adam
e2893f26a1
Add iterator closing for ecma_op_container_create ( #3457 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-19 11:40:29 +01:00
Szilagyi Adam
b6f2ff1ba7
Implement binary literal parsing ( #3439 )
...
This patch will allow the user to use binary literals starting with 0b or 0B,
these literals will be evaluated in parsing time resulting an integer
Co-authored-by: Robert Fancsik [email protected]
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-17 11:42:29 +01:00
Szilagyi Adam
7c0b1ca88a
Update String.prototype.match to ECMA-262 v6 ( #3375 )
...
The algorithm is based on ECMA-262 v6, 21.1.3.11
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-10 14:40:41 +01:00
Szilagyi Adam
6cc9848afc
Implement Array.of method ( #3418 )
...
The algorithm is based on ECMA-262 v6, 22.1.2.3
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-10 14:30:59 +01:00
Szilagyi Adam
dc458d29fb
Implement TypedArray.of method ( #3428 )
...
The algorithm is based on ECMA-262 v6, 22.2.2.2
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-09 14:19:40 +01:00
Szilagyi Adam
e70cfed57a
Add bounds check for copyWithin ( #3425 )
...
When inputs are out of bounds, we don't need to do anything in the operation.
Fixes #3408
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-06 13:33:41 +01:00
Szilagyi Adam
4443c88bf4
Fix index handling in ecma_op_advance_string_index ( #3406 )
...
Fixes #3389
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2019-12-04 11:14:25 +01:00