batizdaniel
a6ab5e9abe
Fix runtime error: left shift ( #4912 )
...
This patch fixes #4703
This patch fixes #4702
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz [email protected]
2021-12-23 11:33:21 +01:00
batizdaniel
26c6031530
Fix class literal scan ( #4906 )
...
This patch fixes #4892
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz [email protected]
2021-12-22 14:50:46 +01:00
Szilagyi Adam
53b61c1f6f
Implement ECMAScript 2022 class static block ( #4841 )
...
Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-12-15 15:45:53 +01:00
Szilagyi Adam
d650390e47
Fix redeclaration related eval corner cases ( #4886 )
...
- Fix cases where a function parameter binding is redeclared inside a parameter initializer eval
- Fix cases where a let- or function arguments binding is redeclared inside a function block because
there is a declaration in a function parameter initializer eval
- Also remove the ECMA_PARSE_CHAIN_INDEX_SHIFT macro, added a debugger_eval_chain_index named field to the jerry context instead
JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
2021-12-15 12:45:10 +01:00
Csaba Repasi
768a209544
Implement 'hasOwn' routine of Object object ( #4835 )
...
JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi [email protected]
2021-12-15 11:38:02 +01:00
Robert Fancsik
ce5c8492b8
Fix arguments object detection in non-complex param list ( #4867 )
...
This patch is the followup of #4849 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 11:35:27 +01:00
Robert Fancsik
dfc001d373
Prevent stack-overflow in json internalize property ( #4877 )
...
This patch fixes #4848 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 11:34:22 +01:00
Robert Fancsik
070096f30f
Fix arrow function this binding resolving if environment record is present ( #4878 )
...
This patch fixes #4872 and fixes #4876 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 11:32:31 +01:00
Robert Fancsik
dbba83fe40
Fix typedarray validation in Atomics read_modify_write ( #4879 )
...
This patch fixes #4875 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 10:33:21 +01:00
Robert Fancsik
d37ff33dbe
Fix class constructor as accessor check ( #4880 )
...
This patch fixes #4874 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 10:32:11 +01:00
Robert Fancsik
ee59c226d9
Fix invalid argument reference in Promise.all executor ( #4885 )
...
This patch fixes #4871 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 10:31:09 +01:00
Robert Fancsik
c2eb9ce35c
Fix object class check for builtin Atomics ( #4889 )
...
This patch fixes #4884 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 10:29:29 +01:00
Robert Fancsik
bcc711e731
Add stack-overflow check for Array.prototype.{flat, flatMap} ( #4899 )
...
This patch fixes #4890
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-15 10:28:18 +01:00
Robert Fancsik
55acdf2048
Fix buffer overflow in string radix conversion ( #4850 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-07 15:28:10 +01:00
Robert Fancsik
18dd9aa75a
Prevent arguments object creation if 'arguments' function argument is present ( #4849 )
...
This patch fixes #4847 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-07 14:05:48 +01:00
Yonggang Luo
f8faf574b6
Rename resource_name to source_name ( #4846 )
...
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
2021-12-07 14:05:04 +01:00
Robert Fancsik
bfc1121e35
Fix AsyncGeneratorPrototype routines 'this' argument validation ( #4811 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-12-06 12:03:26 +01:00
Dániel Bátyai
81d2319144
Improve float number handling and conversion ( #4820 )
...
Fixes #4739 .
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2021-12-03 12:58:37 +01:00
Robert Fancsik
d69ac0e070
Implement logical assignment operators ( #4834 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-11-30 10:44:27 +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
batizdaniel
6b9e24aa51
Fix function name evaluation order ( #4830 )
...
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz [email protected]
2021-11-23 11:58:12 +01:00
Robert Sipka
4592143400
Generator declaration is not allowed in single statement position ( #4815 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
2021-11-09 08:38:09 +01:00
Robert Sipka
7ea0000ee0
Minor fix in for-of statement parsing ( #4814 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
2021-11-02 19:12:30 +01:00
Robert Fancsik
3ad76f932c
Fix for-in collection cleanup on abrupt 'has' result ( #4807 )
...
This patch fixes #4747
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-11-02 08:40:07 +01:00
Robert Fancsik
efe63a5bbc
Fix parsing unterminated let statement ( #4808 )
...
This patch fixes #4754
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-11-02 08:36:16 +01:00
Robert Sipka
9ed695f9d2
Assignment Expression is not allowed in for of head's expression position ( #4810 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
2021-10-29 09:52:30 +02:00
Robert Fancsik
d2388e907f
Implement CreateAsyncFromSyncIterator ( #4802 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-10-28 12:45:47 +02:00
Robert Sipka and Robert Sipka
c6f9ea65ce
Declaration in the head of a for-of loop can't have an initializer ( #4804 )
...
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
Co-authored-by: Robert Sipka <[email protected] >
2021-10-27 09:51:14 +02:00
Gergo Csizi
74f98ec4d7
Add Atomics support ( #4721 )
...
Creating atomics interface
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-10-20 15:50:12 +02:00
Péter Gál
4e8d6344a8
Force value conversion in case of TypedArray filter method ( #4794 )
...
During the execution of the TypedArray filter method it is possible
to have a different sized output TypedArray than the input one.
When copying the data to the output array the values must be
correctly converted to the output TypedArray's value range.
Fixes : #4793
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2021-10-20 15:40:52 +02:00
Péter Gál
4912e3b739
Avoid buffer-overflow in Array.slice when using fast arrays ( #4797 )
...
In the Array.slice method when the engine uses fast arrays the "end" value
was not updated if the input array's length changed. This can occur when the start/end
index normalization executes a method and the length is changed forcefully.
This leads to a buffer-overflow as the element copy reads too much data from the input
array.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2021-10-20 15:40:19 +02:00
Zoltan Herczeg
7c21fb89b2
Reorder list of function built-in properties ( #4791 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-10-07 09:52:07 +02:00
Csaba Osztrogonác
f3cd586094
Fix leaking lastIndex values in RegExp built-ins ( #4787 )
...
Fixes #4781 . This is a followup fix after #4166 .
JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
2021-10-01 12:56:53 +02:00
Zoltan Herczeg
723b26392d
Fix property enumeration order of built-in properties ( #4761 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-09-13 15:32:14 +02:00
Zoltan Herczeg
fea10bb7e3
Add name to the function property names ( #4760 )
...
Furthermore prototype should be the first property.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-09-03 12:42:06 +02:00
Zoltan Herczeg
1523ca3b26
Fix prototype of the values returned by Promise.allSettled ( #4758 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-09-03 12:15:06 +02:00
Zoltan Herczeg
e1ce7dd727
Fix invalid typed array construction ( #4757 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-09-02 12:13:00 +02:00
Zoltan Herczeg
6649940ea6
Implement function.toString operation ( #4752 )
...
May increase the memory consumtpion heavily.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-08-31 13:37:25 +02:00
batizdaniel
a25b824509
Implement {Array, %TypedArray%, String}.prototype.at method ( #4681 )
...
The following methods were implemented:
- Array.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
- String.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
- TypedArray.prototype.at based on ECMA-262 Stage 3 Draft Relative Indexing Method proposal
https://tc39.es/proposal-relative-indexing-method/
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz [email protected]
2021-08-10 17:19:25 +02:00
Zoltan Herczeg
c438d5fa92
Support string iterator for strings longer than 64K ( #4727 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-08-03 10:44:19 +02:00
Zoltan Herczeg
d4178ae386
Support dynamic import calls ( #4652 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-24 09:26:46 +02:00
Gergo Csizi
d9360f51d0
Add SharedArrayBuffer support ( #4689 )
...
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
2021-07-23 17:29:06 +02:00
Zoltan Herczeg
252d68936f
Improve line info construction ( #4718 )
...
- Simplify small encoding
- Better line info for some corner cases
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-16 16:08:38 +02:00
Péter Gál
d5a7839632
Improve Proxy recrusion check in their internal methods. ( #4568 )
...
In some parts of Proxy internal methods the compiler can do a bit of
tail call optimalization which would be ok, but the current stack limit
check framework in Jerry uses the stack pointer to calculate the stack depth.
This way of stack depth calculation is affected by the tail call optimalization
(as the stack does not increase).
By disabling the tail call optimalization at given points the stack limit calculation
will work as expected. This causes a bit of stack overhead, but the Proxy in it self
is a fairly big chunk of code and this stack limit would only be relevant if the Proxy
already does recusion which already very edge case.
The stack limit (--stack-limit=..) should be enabled to correctly report such stack
depth errors.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
2021-07-15 14:02:53 +02:00
Zoltan Herczeg
7f6a699700
Implement namespace exports in modules ( #4708 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-09 07:23:28 +02:00
Zoltan Herczeg
d1204ab1c9
Rework resolving references and namespace creation in modules ( #4695 )
...
- Properties of namespace objects are ordered in lexical order
- The namespace object is created and imports are bound during linking phase
- Namespace imports are changed to read-only
- Reduced memory consumption
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-07-06 14:50:19 +02:00
Zoltan Herczeg
5729dd8cec
Object.assign should copy undefined values ( #4688 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-06-10 10:59:54 +02:00
kisbg
a58884c169
Update TypedArray internals methods ( #4653 )
...
releated test262 test-cases has been removed from the skip list.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-04-27 09:45:26 +02:00
Zoltan Herczeg
b4bea25f13
Export assignment expression must not track variables ( #4660 )
...
Only export the result of the assignment expression. This value cannot be changed later.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-21 08:56:50 +02:00
Zoltan Herczeg
4f15332e95
Export default in namespace object ( #4657 )
...
Fix a crash when the exported value is a reference.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-19 18:31:59 +02:00