Robert Fancsik
6c21c08b0e
Fix ecma_op_function_list_lazy_property_names in case of arrow function ( #2529 )
...
Fixes #2528 .
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2018-09-17 13:31:17 +02:00
Daniel Balla
8f64339e5f
Fix ecma_op_object_put return value not being handled ( #2514 )
...
Fixes #2487
Fixes #2488
Co-authored-by: Robert Fancsik frobert@inf.u-szeged.hu
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
2018-09-06 21:05:37 +02:00
Zoltan Herczeg
d3d42f7685
Implement the core of the map object. ( #2447 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2018-09-04 13:30:00 +02:00
Zoltan Herczeg
bd42403600
Implement computed properties for object literals. ( #2481 )
...
Also disable ES5.1 property name dumplication checks
when ES2015 object literals are enabled.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2018-08-28 15:28:16 +02:00
Anthony Calandra
b2cf7eb659
Add %TypedArray%.prototype.sort([ compareFunction ]) support. ( #2437 )
...
JerryScript-DCO-1.0-Signed-off-by: Anthony Calandra anthony@anthony-calandra.com
2018-08-22 08:49:12 +02:00
Daniel Balla
87897849f6
Fix for null pointer dereference in jmem_heap_free_block ( #2440 )
...
Fixes #2435 .
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
2018-08-01 23:09:30 +09:00
Robert Fancsik
43aae199ce
Implement ES2015 class feature (part I.) ( #2404 )
...
This patch is the first milestone of the implementation of this new language element.
Currently supported:
- Class statement
- Class expression
- Static methods
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
2018-07-13 01:20:08 +09:00
Zoltan Herczeg
04dcefe087
Rework function call. ( #2414 )
...
Furthermore add a construct flag, which disallows calling certain
functions without new. Constructing bound arrow functions correctly
throws error now.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2018-07-11 09:35:44 +09:00
Anthony Calandra
a456c90c1d
Add %TypedArray%.prototype.fill(value, [ begin [, end ] ]) support. ( #2415 )
...
JerryScript-DCO-1.0-Signed-off-by: Anthony Calandra anthony@anthony-calandra.com
2018-07-03 19:21:14 +09:00
Anthony Calandra
d5cd32b0c0
Support for %TypedArray%.prototype.set(typedArray [, offset]). ( #2405 )
...
This patch allows developers to set a typedarray given a source typedarray. This patch
attempts to follow section 22.2.3.22.2 in the ECMAScript spec as closely as possible.
JerryScript-DCO-1.0-Signed-off-by: AnthonyCalandra anthony@anthony-calandra.com
2018-07-03 15:19:53 +09:00
Anthony Calandra
a74bf7dc91
Add %TypedArray%.prototype.subarray([ begin [, end ] ]) support. ( #2410 )
...
JerryScript-DCO-1.0-Signed-off-by: Anthony Calandra anthony@anthony-calandra.com
2018-06-28 09:41:07 +02:00
Achie72
3df6ef30c0
Implement toString and join for TypedArrays. ( #2255 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2018-04-19 10:14:34 +02:00
Peter Marki
8392eef8ad
Implement the ES2015 version of Object.getPrototypeOf and add a test file for it ( #2256 )
...
JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
2018-04-05 14:28:28 +02:00
Achie72
dde09cc4b6
Fix JSON.stringify, to allow TypedArray printing ( #2242 )
...
JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2018-03-19 14:12:33 +01:00
Zoltan Herczeg
c935e4b7e2
Return early if number conversion is failed in arraybuffer slice. ( #2184 )
...
Fixes #2181 .
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2018-02-01 19:30:03 +09:00
Zidong Jiang
c3c0bb8ddc
[Bugfix]free error in typearray set value routine ( #2147 )
...
Issue: #2143
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-12-20 12:52:29 +01:00
Daniel Balla
96df210cc5
Add object type checking to instantiation
...
It wasn't properly checked if the given object was an arrow function, therefore it always got wrongly casted into `ecma_arrow_function_t`.
Fixes issue #2110
*plus fixing a typo in the comments
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
2017-12-13 18:14:34 +09:00
Zidong Jiang
29056f9ab9
Fix error-free issue in promise
...
Fix issue: #2107
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-11-21 19:49:44 +09:00
Zidong Jiang
9a9dcf3332
Fix bug in promise resolve handler
...
Should get the error_value if `then` prop is an error.
Fix issue: #2111
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-11-21 14:25:51 +09:00
Zoltan Herczeg
9f0cf9ef1c
Implement this binding for arrow functions.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2017-10-06 09:07:13 +09:00
Zoltan Herczeg
8a5bfd2279
Implement template literals. ( #2025 )
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2017-09-27 11:24:51 +02:00
Zoltan Herczeg
c6a33dd407
Implement arrow function parsing. ( #2022 )
...
Note: the special this behaviour of arrow functions is not implemented.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2017-09-26 10:40:45 +02:00
Zidong Jiang
c21c21f9f9
[ecma-collection] Check whether the header's first chunk is NULL
...
Fix Issue: #1997
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-09-07 17:42:51 +09:00
Zidong Jiang
74045f2964
[Promise] check the argc of builtin resolve/reject handler
...
Fix issue: #1996
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-09-05 18:42:46 +09:00
Zidong Jiang
78e3d88bd9
[unix-main] call jerry_run_all_enqueued_jobs before cleanup
...
Related Issue: #1995
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-09-05 17:43:37 +09:00
Zoltan Herczeg
522c7d3f87
Correctly enumerate function property members.
...
Functions has several built-in non-enumerable properties, and
they are correctly ignored during enumeration after this patch.
External function prototype is also lazy enumerated.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2017-09-05 09:11:35 +09:00
Zidong Jiang
5b22e5e0ff
Bugfix: the value in test cases should be invariable ( #1939 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-07-27 13:37:20 +02:00
Zidong Jiang
a4bc229592
Bugfix: should return error immediately in ecma_op_create_typedarray
...
Related issue: #1936
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-07-27 17:08:24 +09:00
Zidong Jiang
940f1f89c9
Check if it is object in Promise.prototype.then
...
Fix issue #1881
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-06-08 17:08:20 +09:00
Zidong Jiang
078f6e101d
Implement other routines of Promise ( #1729 )
...
Add Promise.resolve, Promise.reject, Promise.race, Promise.all and
Promise.prototype.catch
Also it fixes the issue 1763
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-04-26 19:47:51 +08:00
Zidong Jiang
63b6fd1bc9
Add the class name of promise.prototype ( #1766 )
...
Fix Issue: 1765
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-04-22 08:34:42 +08:00
Zidong Jiang
8571ebfae5
Implement %TypedArray%.from and fix the issue #1670 ( #1679 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-03-24 10:37:22 +01:00
Zidong Jiang
c6f22a9683
Make sure the size arg of alloc will not overflow ( #1618 )
...
Also make sure the bytelength = arraylength << shift will not overflow
Fix issue #1616
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-03-07 08:37:19 +09:00
Zidong Jiang
71e1383d13
Check if propery is not found before delete it. ( #1637 )
...
Fix issue #1633
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-03-06 21:08:30 +08:00
Zidong Jiang
b13f78f19e
Check options in ecma_op_object_get_own_property for typedarray. ( #1627 )
...
And add regression-case subfolder for es2015
Fix issue #1622
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2017-03-06 19:07:02 +08:00