Zoltan Herczeg
2058ea1286
Implement eval support for functions with arguments lexical env. ( #3806 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
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 dbatyai@inf.u-szeged.hu
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 frobert@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
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 zherczeg.u-szeged@partner.samsung.com
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 zherczeg.u-szeged@partner.samsung.com
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 kisbg@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
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 pgal.usz@partner.samsung.com
2020-06-06 18:39:40 +02:00
Dániel Bátyai
cae6cd08fb
Primitive this values of accessors should not be coerced in strict mode ( #3854 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-06-05 15:58:10 +02:00
Zoltan Herczeg
10e78a4eef
Context break should honor private contexts. ( #3852 )
...
Fixes #3830
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-06-05 14:39:13 +02:00
Robert Fancsik
1770ccaecd
Object/Array initializers should be parsed as AssignmentExpression ( #3851 )
...
This patch fixes #3849 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-05 13:25:05 +02:00
Péter Gál
0d4116933f
Fix property descriptor queries ( #3840 )
...
When the getOwnPropertyDescriptor method was invoked the input property
descriptor was not cleared in every case. This could lead to problems when
the property descriptor is not set/modified by the getOwnPropertyDescriptor
call, resulting in a failure at a later state.
Related to this the Proxy getOwnPropertyDescriptor method incorrectly returned
"undefined" value in a single case.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-06-05 12:28:34 +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 aszilagy@inf.u-szeged.hu
2020-06-05 12:20:26 +02:00
Robert Fancsik
c09c2c5dd7
Fix several function name related issues ( #3848 )
...
- For non-computed name srcipt functions only identifier/string literal should be set as name
- Implicit class constructor names with non string function name should be ToString-ed
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-04 13:44:22 +02:00
Zoltan Herczeg
e6ebc2be78
Don't continue parsing expressions after ternary operators. ( #3847 )
...
Further benefits: new code requires less checks.
Fixes #3841
Fixes #3842
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-06-04 13:27:32 +02:00
Robert Fancsik
1414e9bb00
Fix invalid AssignmentExpression lookahead in parser_process_group_expression ( #3846 )
...
This patch fixes #3845 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-04 13:23:25 +02:00
Dániel Bátyai
1322e08ac2
Fix parsing function statements containing invalid tokens ( #3838 )
...
Fixes #3821 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-06-04 11:25:25 +02:00
Robert Fancsik
fe09200d61
Fix assignment lookahead in parser_process_group_expression ( #3828 )
...
This patch fixes #3815 and fixes #3819 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-03 15:29:26 +02:00
Robert Fancsik
4660bab16b
Fix PropertyDefinition parsing in ObjectInitializer ( #3832 )
...
This patch fixes #3822 and fixes #3823 and fixes #3824 and fixes #3825 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-03 15:28:13 +02:00
Rafal Walczyna
a56e31f194
Update ES6 Set and Map "size" accessor descriptors ( #3826 )
...
In ES6 accessors of built in object are by default configurable.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
2020-06-02 18:01:45 +02:00
Robert Fancsik
dc837d232d
Fix incorrect assertion on ecma_op_function_has_instance ( #3827 )
...
This patch fixes #3814 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-06-02 16:16:21 +02:00
Dániel Bátyai
9ceece8eb4
Fix string position calculation in @@replace ( #3831 )
...
Fixes #3817 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-06-02 16:15:23 +02:00
Dániel Bátyai
d06c3a7f50
Fix error handling in SerializeJSONProperty ( #3816 )
...
Fixes #3813 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-05-30 19:46:52 +02:00
Robert Fancsik
3b4c259281
Add support for builtin/builtin routine 'name' property ( #3810 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-29 14:28:52 +02:00
Robert Fancsik
5895b96bdb
Class extends expression should be parsed is strict mode ( #3801 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-28 16:23:56 +02:00
Csaba Osztrogonác
e76a1381e6
Update test262-es6-excludelist.xml. ( #3808 )
...
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
2020-05-28 15:10:54 +02:00
Robert Fancsik
104001df68
Implement function name support for script functions and classes ( #3745 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-28 12:33:21 +02:00
Zoltan Herczeg
562dcc8630
Fix Promise thenable. ( #3799 )
...
A single promise can be resolved any number of times due to
thenable functions, but each resolver pair can only be called once.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-05-28 10:48:44 +02:00
Dániel Bátyai
8f76a1f382
Rework RegExp engine and add support for proper unicode matching ( #3746 )
...
This change includes several bugfixes, general improvements, and support
for additional features.
- Added full support for web compatibility syntax defined in Annex B
- Implemented parsing and matching patterns in unicode mode
- Fixed capture results when iterating with nested capturing groups
- Significantly reduced regexp bytecode size
- Reduced stack usage during regexp execution
- Improved matching performance
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-05-26 15:28:54 +02:00
Péter Gál
908240ba62
Improve property key query for Proxy objects ( #3797 )
...
Property key query for Proxy objects always returned all keys
even if no symbols were requested symbols were present in the
resulting array.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-05-26 15:22:49 +02:00
Robert Fancsik
dd6d148c3b
Fix incorrect assertion in parser_parse_for_statement_start ( #3795 )
...
This patch fixes #3751 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-26 11:49:31 +02:00
Dániel Bátyai
15629e8ba5
Add stack limit check to proxy operations ( #3796 )
...
Fixes #3785 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
2020-05-26 09:44:38 +02:00
Robert Fancsik
3060656562
Fix lazy property listing for [[Enumerate]] ( #3794 )
...
This patch fixes #3784 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-25 19:09:12 +02:00
Szilagyi Adam
edaf4ef30f
Rework the Reflect.preventExtensions method ( #3771 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
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 aszilagy@inf.u-szeged.hu
2020-05-25 18:09:37 +02:00
Péter Gál
1774cca47c
Fix array length check in lastIndexOf ( #3789 )
...
When lastIndexOf is executed the array length can change and in
case of fast arrays the length should be re-checked.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-05-25 16:36:54 +02:00
Péter Gál
6fe6dab9cc
Fix parseFloat input string length calculation ( #3782 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-05-25 13:05:18 +02:00
Robert Fancsik
b2a2022d0a
Fix property order in lazy property listing for builtin/external functions ( #3780 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-25 13:00:21 +02:00
Szilagyi Adam
f06c533a29
Change the Reflect.ownKeys method's length property ( #3775 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-05-25 12:59:51 +02:00
Robert Fancsik
b9258da7d0
Accessor functions should not have 'prototype' property ( #3781 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-25 12:57:25 +02:00
Robert Fancsik
6cd309b525
Function.prototype[@@hasInstance] should not throw error for not callable this value ( #3773 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2020-05-22 17:23:07 +02:00
Rafal Walczyna
876622a061
Fix vera++ rule to find expressions without space after parentheses ( #3776 )
...
Regex didn't include some characters that may occur after ')'
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
2020-05-22 14:37:59 +02:00
Rafal Walczyna
5d6069176b
Change raw string length calculation method ( #3772 )
...
New method uses length of source to calculate raw string length.
Also bug with template literal was fixed. Template object should have
indexed properties enumerable.
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
2020-05-22 10:11:47 +02:00
Péter Gál
87b1d1eeb0
Fix regexp flag handling in case of regexp like object ( #3766 )
...
The regexp flag should be correctly referenced and released
if an existing regexp like object is used for constructing a new one.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-05-21 14:51:50 +02:00
Péter Gál
08222992dc
Fix parseFloat for non-infinity values ( #3769 )
...
The parseFloat method performed the "Infinity" string check
incorrectly.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
2020-05-21 14:50:59 +02:00
Szilagyi Adam
e1960621f3
Add new target support to RegExp object ( #3723 )
...
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
2020-05-20 17:10:55 +02:00