Zoltan Herczeg
6389816f67
Implement AsyncIteratorClose for for-await-of statement. ( #3955 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-07-01 12:40:39 +02:00
Roland Takacs
dc3165533e
Support symbol property names in Object.defineProperties ( #3933 )
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2020-07-01 12:38:20 +02:00
Csaba Osztrogonác
0deeb39ebf
Fix Object.prototype.toLocaleString() and Array.prototype.toLocaleString() ( #3953 )
...
Since ES6 Object.prototype.toLocaleString() shouldn't call ToObject() and
Array.prototype.toLocaleString() shouldn't call ToObject() for each element.
References:
- https://www.ecma-international.org/ecma-262/11.0/index.html#sec-array.prototype.tolocalestring
- https://www.ecma-international.org/ecma-262/11.0/index.html#sec-object.prototype.tolocalestring
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-07-01 12:05:54 +02:00
Csaba Osztrogonác
1064b19cfb
Class accessors shouldn't be enumerable. ( #3961 )
...
Reference:
https://www.ecma-international.org/ecma-262/11.0/index.html#sec-runtime-semantics-classdefinitionevaluation 21.a,b
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-07-01 12:03:49 +02:00
Csaba Osztrogonác
b57e9cbc27
Symbol.prototype[Symbol.toPrimitive].length should be 1 ( #3960 )
...
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-07-01 08:54:58 +02:00
Zoltan Herczeg
37049c4968
Support catch statement without argument. ( #3956 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-30 18:00:40 +02:00
Rafal Walczyna
9d2b7334bc
Update Symbol.split functions for String and Regexp to match new standard ( #3942 )
...
In newest ES standard limit parameter is calculated using
ToUint32 function instead of ToLength.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
2020-06-30 16:03:11 +02:00
Zoltan Herczeg
cd949d9d64
Rework flags representing arrow functions and complex arguments ( #3957 )
...
This allows detecting cases which was not possible before.
Fixes #3944
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-30 14:00:35 +02:00
Roland Takacs
034b3b63f5
Correct Object.keys to collect only enumerable property names ( #3952 )
...
In case of Proxy objects, there were no property descriptor checks when
collecting enumerable properties. Therefore, all the non-enumerable
Proxy.target properties were listed as well.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2020-06-30 13:13:18 +02:00
Csaba Osztrogonác
89342ea503
Make test262-es2015 output more verbose ( #3924 )
...
It makes easier to debug unexpected failures on the CI.
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-06-30 12:47:54 +02:00
Zoltan Herczeg
5535ea88ac
Implement for-await-of statement. ( #3946 )
...
AsyncIteratorClose has not supported yet.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-30 11:21:50 +02:00
Zoltan Herczeg
0b404ea893
Support caching of next method in for-of and built-in methods. ( #3939 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-26 14:47:39 +02:00
Zoltan Herczeg
b7e3baeecb
Support caching of next method in generators. ( #3937 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-26 12:09:36 +02:00
Zoltan Herczeg
f88489beef
Implement yield* operator ( #3923 )
...
Missing features:
- caching next() method (this also true for normal generators)
- automatic sync to async generator conversion
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-25 17:11:16 +02:00
Péter Gál
c12c60c550
Fix DataView argument handling in case of undefined value ( #3930 )
...
The DataView's third argument incorrectly processed the "undefined"
value resulting in a RangeError.
Fixes : #3927
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2020-06-25 14:05:08 +02:00
Roland Takacs
ae17c1184c
Implement Object.getOwnPropertyDescriptors built-in method ( #3921 )
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2020-06-25 12:08:46 +02:00
Zoltan Herczeg
5d8c5f3e92
Support comma after last argument for function declarations ( #3910 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-24 10:41:03 +02:00
Rafal Walczyna
e64fc9aca9
Remove "arguments" and "caller" from specific functions ( #3918 )
...
As stated in ES 16.1, "arguments" and "caller" must not be created in:
- strict functions created using the Function constructor
- generator functions created using the Generator constructor
- async functions created using the AsyncFunction constructor
- functions created using the bind
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
2020-06-22 19:08:13 +02:00
Csaba Osztrogonác
281635cb40
Fix the types of builtin prototype objects ( #3922 )
...
ES2015 spec made an incompatible change, many builtin prototypes became
no longer valid instances of their respective classes. But unfortunately
it broke the web, so ES2016 reverted String, Boolean and Number prototype
to the original behaviour (ES5.1). JerryScript should match the latest spec.
references:
- ES11 19.3.3 Properties of the Boolean Prototype Object
- ES11 20.1.3 Properties of the Number Prototype Object
- ES11 21.1.3 Properties of the String Prototype Object
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-06-22 16:31:13 +02:00
Zoltan Herczeg
8ccccd9705
Fix a few small issues in generators ( #3919 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-22 13:55:33 +02:00
Zoltan Herczeg
b2a6109430
Implement async generators ( #3916 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-22 13:54:18 +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
kisbg
6a877185fe
Added new target support for dataview object ( #3764 )
...
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2020-06-18 13:53:30 +02:00
Robert Fancsik
a026a7d713
Fix releasing 'exec' in regexp replace fast path ( #3913 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2020-06-17 19:24:07 +02:00
Csaba Osztrogonác
c55a0baaf8
Improve test262 ES2015 runner ( #3892 )
...
Changes:
- Add options to the test runner to be able to update exclude list
- Update the exclude list
- Make Travis CI signal if the exclude list isn't up-to-date
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-06-17 15:42:51 +02:00
Zoltan Herczeg
b1912e7224
Fix async function call parsing. ( #3909 )
...
The "async" identifier processing is delayed until it is detected that it cannot
be part of an arrow expression. The "async" identifier should be processed at this
point, but it was not happened in this case.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-17 15:35:02 +02:00
Rafal Walczyna
5bcb78482a
Remove arguments and caller properties from ArrowFunction ( #3906 )
...
As stated in ES11 16.1, ArrowFunction should not have caller and arguments
properties.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
2020-06-17 13:01:16 +02:00
Robert Fancsik
cc4ac497b7
Merge jerry-test-suite into jerry tests ( #3907 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2020-06-17 13:00:41 +02:00
Zoltan Herczeg
8719f72e61
Implement async function execution. ( #3897 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-17 12:08:01 +02:00
Dániel Bátyai
fde0d556ac
Re-target for ES.Next ( #3901 )
...
A list of changes:
- 'es2015-subset' profile is deprecated, and an 'es.next' profile is added.
- The default profile is changed to 'es.next'
- Renamed the JERRY_ES2015 guard to JERRY_ESNEXT
- Renamed JERRY_ES2015_BUILTIN_* guards to JERRY_BUILTIN_*
- Moved es2015 specific tests to a new 'es.next' subdirectory
- Updated docs, targets, and test runners to reflect these changes
Resolves #3737 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2020-06-12 17:55:00 +02:00
Robert Fancsik
23bba1c6d9
Builtin objects finalization should handle function properties with tagged template literal collection ( #3896 )
...
This patch fixes #3893 .
Co-authored-by: Dániel Bátyai [email protected]
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2020-06-12 13:01:44 +02:00
Zoltan Herczeg
38111c0889
Fix redeclaration of existing var variables in functions with argument context. ( #3891 )
...
Fixes #3888
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-11 11:36:37 +02:00
Rafal Walczyna
049a0c43f6
Fix ReferenceError for let/const variables in of/in for loop ( #3885 )
...
ReferenceError should be thrown when variable is used before assignment
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
2020-06-10 12:39:02 +02:00
Zoltan Herczeg
1bf52f5847
Fix initializer detection in for-in expressions. ( #3884 )
...
Also fix column update when comments are parsed.
Fixes #3882
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-10 12:37:52 +02:00
Dániel Bátyai
6d9d2328e9
Fix built-in RegExp allocation with default constructor ( #3883 )
...
Fixes #3880 .
Fixes #3881 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2020-06-09 12:33:41 +02:00
Robert Fancsik
dba9533af1
Compiled code should hold strong reference for the object in the tagged template literal collection ( #3876 )
...
This patch fixes #3866 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2020-06-09 08:20:30 +02:00
Dániel Bátyai
70383255fc
Fix result of Date getters when called on invalid date ( #3879 )
...
Fixes #3878 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2020-06-09 07:27:31 +02:00
Roland Takacs
585332f072
Fix define_own_property_descriptor to set configurable flag correctly ( #3877 )
...
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
2020-06-08 18:12:39 +02:00
Zoltan Herczeg
36bf1ec09d
Implement argument redefinition with var statement. ( #3811 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-08 13:43:50 +02:00
Csaba Osztrogonác
a885664220
Builtin objects accessor properties should be configurable ( #3839 )
...
http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-standard-built-in-objects
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2020-06-08 13:22:41 +02:00
Zoltan Herczeg
2058ea1286
Implement eval support for functions with arguments lexical env. ( #3806 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-08 12:11:54 +02:00
Dániel Bátyai
fed1b0c827
Add missing end-of-string checks to RegExp parser in unicode mode ( #3875 )
...
Fixes #3870 .
Fixes #3871 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2020-06-08 11:09:08 +02:00
Robert Fancsik
b7a641c124
Raw string length should be adjusted when UTF8 string is converted to CESU8 ( #3853 )
...
This patch fixes #3812 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2020-06-08 11:00:34 +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
Zoltan Herczeg
1230d4532c
Asterisk should be ignored by object initializers. ( #3872 )
...
Fixes #3869
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-08 10:27:42 +02:00
Zoltan Herczeg
ab2e821777
Fix three async function issues. ( #3863 )
...
- Invalid assert
- Add missing async prefix check when an identifier is enclosed in brackets
- Adding a new byte-code
Fixes #3855
Fixes #3856
Fixes #3857
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2020-06-08 10:25:34 +02:00
kisbg
c2c623df79
Added missing generator prototype check ( #3865 )
...
Fixes #3861
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2020-06-08 10:25:04 +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
Péter Gál
ba4e3a402f
Correct release of spread arguments ( #3867 )
...
During the `opfunc_spread_arguments` argument release process
the stack pointer was incremented early resulting in a state where
one of the arguments was not freed causing a memory leak.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2020-06-06 18:39:40 +02:00