batizdaniel
6de17b204e
Fix implicit conversion error ( #4684 )
...
This patch fixes the #4682
JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz [email protected]
2021-06-24 15:38:56 +02:00
Virag Orkenyi
d97d407eee
Add custom dispatcher to builtin_weakref_prototype. ( #4686 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag [email protected]
2021-06-24 15:36:47 +02:00
Virag Orkenyi
dddd37d38f
Add custom dispatcher to builtin-proxy ( #4687 )
...
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag [email protected]
2021-06-24 15:36:25 +02:00
Tóth Béla
9471515dae
Add container related API function ( #4666 )
...
The new function returns with an array, containing the
elements of the given Container or Container iterator.
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
2021-06-16 07:41:13 +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
Jiawen Geng
7be339ad61
Fix typo in property hashmap define ( #4664 )
...
Fixes jerryscript-project/jerryscript#4648
JerryScript-DCO-1.0-Signed-off-by: Jiawen Geng [email protected]
2021-05-26 12:26:11 +02:00
Zoltan Herczeg
431a28b902
Fix native error check ( #4674 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-21 12:36:07 +02:00
Zoltan Herczeg
3c512d937b
Add getter for Proxy handler objects ( #4676 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-21 12:35:53 +02:00
Zoltan Herczeg
26f604ce1e
Change error message format of DefineProperty ( #4672 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-17 11:14:38 +02:00
Zoltan Herczeg
e042998f02
Support function object retrieval for async functions ( #4668 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-05-11 12:22:37 +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
823a8b128d
Fix error throw in jerry_define_own_property ( #4662 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-27 09:42:20 +02:00
Zoltan Herczeg
8aaabd8b01
Do not mark the unused items of a WeakMap ( #4663 )
...
The new method is slower, but correctly release unused objects.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-27 09:42:03 +02:00
kisbg
ce24edae24
Add check Proxy object [[SetPrototypeOf]] ( #4631 )
...
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-04-26 09:21:29 +02:00
Zoltan Herczeg
dead11cdd0
Fix external pointer allocation issues. ( #4658 )
...
The allocations during the update of external pointers may trigger
the GC. Due to a new feature, the GC uses the external pointer data
to mark objects, which caused crashes in some cases.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-20 11:53:58 +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
Zoltan Herczeg
ec3ed65b56
Add reference support for native pointers. ( #4615 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-19 14:47:17 +02:00
Tóth Béla
cc1a263657
Continue replacing duplicate ecma definitions ( #4644 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
2021-04-19 13:44:01 +02:00
Zoltan Herczeg
1f2a8d4ac1
Add notification callback for module state changes ( #4656 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-16 17:50:57 +02:00
Zoltan Herczeg
a7a4cb29e4
Native modules should be unlinked state after creation ( #4655 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-16 15:55:12 +02:00
Zoltan Herczeg
7b6743403f
Support native modules ( #4649 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 16:26:38 +02:00
Zoltan Herczeg
05a4e45ece
Fix uninitialized data in create native property ( #4650 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 15:17:25 +02:00
kisbg
60cbc93cd7
Update TypedArray Builtin function ( #4633 )
...
Also create TypedArray object with object method has been added.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-04-13 13:37:04 +02:00
Zoltan Herczeg
053389de80
Add info to external pointer free callback. ( #4642 )
...
Furthermore reduce memory consumption when only
one external pointer is assigned to an object.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-13 09:51:39 +02:00
Zoltan Herczeg
b3ec217b50
Create namespace with references for modules ( #4646 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-12 15:58:56 +02:00
Zoltan Herczeg
ef35c0329c
Remove class id storing for class objects ( #4645 )
...
The two bytes which stored the id is free to use. Currently the only exception is containers.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-08 14:46:16 +02:00
kisbg
2381078e80
Add constant error messages ( #4640 )
...
added two new file ecma-errors.h and ecma-erros.c
it contains the most used errors messages.
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-04-07 12:46:12 +02:00
Zoltan Herczeg
d85020f709
Remove pseudo array object type from the project ( #4643 )
...
A new class type enum is introduced to describe the class of objects.
This enum is organized to improve property resolve and GC performance.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-04-06 18:46:48 +02:00
Zoltan Herczeg
4377ef684d
Add module C API functions ( #4636 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-31 19:40:58 +02:00
Tóth Béla
6677fa0a12
Replace duplicate ecma definitions ( #4637 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth [email protected]
2021-03-31 11:52:33 +02:00
Zoltan Herczeg
6c484f3529
Rework module linking ( #4632 )
...
The module linking process from jerry_parse is moved out into
a new jerry_module_link function, and jerry_parse is limited to
create unlinked modules.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-30 15:40:09 +02:00
Zoltan Herczeg
874a6a49d5
Extract type defintions from jerryscript-core.h into jerryscript-types.h ( #4634 )
...
The function declarations in jerryscript-core.h should not be visible
internally, only the type declarations in jerryscript-types.h
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-24 05:51:59 +01:00
kisbg
22ebb00a4c
Implement Promise.any and AggregateError Object ( #4623 )
...
JerryScript-DCO-1.0-Signed-off-by: Bence Gabor Kis [email protected]
2021-03-22 12:42:20 +01:00
Zoltan Herczeg
edd2f20397
Remove jerry_port_track_promise_rejection ( #4613 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-11 19:58:44 +01:00
kisbg
8321640c4e
Remove unnecessary ecma_deref_ecma_string in regExpStringIterator ( #4625 )
...
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-03-11 09:14:45 +01:00
Zoltan Herczeg
546422161e
Add custom configuration to jerry_parse and its variants ( #4620 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-10 09:56:48 +01:00
Zoltan Herczeg
7a2665621b
Reorganize property descriptor flags ( #4622 )
...
Furthermore rename JERRY_PROP_IS_THROW to JERRY_PROP_SHOULD_THROW
and add more invalid descriptor checks.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-10 08:17:20 +01:00
kisbg
dc3ae4ff06
Implement Promise.allsettled ( #4616 )
...
Also i updated the promise race and all method to the latest standart
The two jerry/es.next test-cases has been update to support the latest standart
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-03-08 11:43:42 +01:00
kisbg
9254cd4e7a
Add ThrowTypeError name property ( #4618 )
...
JerryScript-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
2021-03-05 10:40:17 +01:00
Zoltan Herczeg
a95e3e37e1
Add more skip check options for Proxy objects ( #4614 )
...
Reorganize the flags to follow the list in ES2020 section 9.5
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-03-03 17:12:36 +01:00
kisbg
129ca4946c
Implement WeakRef Object ( #4546 )
...
Related test262 test-cases has been removed from skip list.
Execpt two test-case since they need other feature to work (Finalization registry and async GC)
JerryScript-DCO-1.0-Signed-off-by: Bence Gabor Kis [email protected]
2021-03-01 13:46:54 +01:00
Zoltan Herczeg
17ed855df5
Default handlers should count as resolvers ( #4611 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-25 12:27:21 +01:00
Zoltan Herczeg
c27047da03
Add filters and more events to Promise callback. ( #4605 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-24 10:31:08 +01:00
Robert Fancsik
f0f2a28109
Improve ecma_reject to give more detailed error messages ( #4565 )
...
Note: TypedArray.[[DefineOwnProperty]] has been slightly reworked (without semantical changes) for better error messages.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2021-02-24 09:36:55 +01:00
Zoltan Herczeg
a3bdd36556
Reduce memory consumption of Promise objects ( #4607 )
...
No need to keep a reference to resolver functions.
Unused resolvers are cleaned up sooner by GC.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-24 08:51:23 +01:00
Zoltan Herczeg
1cf2989a64
Add new.target argument to Promise create ( #4606 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-24 08:50:05 +01:00
Zoltan Herczeg
5c35370327
Create special objects for scripts instead of functions ( #4610 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-23 15:34:09 +01:00
Dániel Bátyai
2240a9153a
Optimize the copying/freeing of ecma values ( #4602 )
...
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
2021-02-22 08:32:10 +01:00
Zoltan Herczeg
01e0388d77
Add notification callback for Promise operations ( #4595 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-18 11:29:52 +01:00
Zoltan Herczeg
112ad83aaa
Rework external function handlers ( #4599 )
...
Instead of a fixed number of arguments, a call info structure is passed
to the handlers, which can be extended in the future without breaknig the
API. This structure holds new.target value, so its getter function is removed.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
2021-02-17 17:52:19 +01:00