Zidong Jiang
11e0c13094
Add api: jerry_get_value_without_error_flag ( #2096 )
...
It is used to get the reference value from a error value
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-12-13 12:46:20 +08:00
Zidong Jiang
29056f9ab9
Fix error-free issue in promise
...
Fix issue: #2107
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
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 [email protected]
2017-11-21 14:25:51 +09:00
Zidong Jiang
2865826fc4
[jerryx-module]Fix a bug in module name comparison ( #2079 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-11-10 13:11:26 +01:00
Zidong Jiang
5bd72047cc
jerryx: add jerryx_arg_array ( #2052 )
...
Related issue: #2046
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-10-30 20:39:14 +01:00
Zidong Jiang
0bc4bb056d
Fix promise thenable bug
...
Related Issue: #2060
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-10-27 18:37:58 +09: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 [email protected]
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 [email protected]
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 [email protected]
2017-09-05 17:43:37 +09:00
Zidong Jiang
2888a6f488
[jerryx-arg]Check NaN in jerryx_arg_int
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-08-17 09:15:35 +09:00
Zidong Jiang
c242248b47
Add API for get the memory stats ( #1923 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-08-04 09:44:37 +02:00
Zidong Jiang
5b22e5e0ff
Bugfix: the value in test cases should be invariable ( #1939 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
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 [email protected]
2017-07-27 17:08:24 +09:00
Zidong Jiang
8c9b0d4086
Fix empty string issue in ext/args ( #1921 )
...
Now the js string "" can be converted to C array by jerryx_arg_string
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-07-14 17:41:02 +02:00
Zidong Jiang
b153475093
add transform functions for integer in jerryx/arg ( #1883 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-06-21 19:32:13 -05:00
Zidong Jiang
e4eecc2019
add transform_object_properties in jerryx/arg ( #1879 )
...
Add a function in jerryx/arg.
jerryx_arg_transform_object_properties, it will validate the properties of a JS object, and convert those properties into native type.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-06-19 19:51:08 -05: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 [email protected]
2017-06-08 17:08:20 +09:00
Zidong Jiang
11d5402c35
Allow out_native_pointer_p in jerry_get_object_native_pointer to be NULL ( #1876 )
...
Support those cases when the existence of the native property is checked.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-06-05 10:44:56 +02:00
Zidong Jiang
eb2af2d2a6
jerryx_arg: add '\0' when transforming string ( #1827 )
...
Related issue: #1824
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-05-22 08:32:20 +08:00
Zidong Jiang
5e28bfc28a
Support external context, heap and lcache ( #1778 )
...
JerryScript should support external context, heap and lcache,
so that it can have multiple instances and runtime configurable heap
size.
Related issue: 1746
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-05-20 11:00:19 +08:00
Zidong Jiang
90efdf9c8b
A tool in jerry-ext: arg transformer for binding ( #1740 )
...
It provides some APIs for binding developers, so that
they can validate the type of the js argument and convert/assign them
to the native argument.
Related Issue: #1716
JerryScript-DCO-1.0-Signed-off-by: Martijn The [email protected]
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-05-04 18:00:35 +08:00
Zidong Jiang
ede13835b2
Add promise C API ( #1796 )
...
Add API: jerry_create_promise, jerry_value_is_promise and jerry_resolve_or_reject_promise.
related issue: 1794
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-05-04 16:13:26 +08:00
Zidong Jiang
14c455bcd8
[native pointer] Check if freecb is NULL before calling it ( #1789 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-04-28 09:01:40 +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 [email protected]
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 [email protected]
2017-04-22 08:34:42 +08:00
Zidong Jiang
eb8dd4602b
Implement the basic Promise ( #1695 )
...
Implement the Promise Constructor and routine: 'then'
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-04-12 22:10:08 +08:00
Zidong Jiang
e522e740a7
Add 'type' argument to set/get native handle API ( #1711 )
...
Ecma-object have native handle type inside, and binding code could use
type info to validate native handle's type.
Related issue #1681
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-04-10 16:51:37 +08:00
Zidong Jiang
41c63e08b1
Combine ARRAYBUFFER and TYPEDARRAY macros together ( #1699 )
...
Change CONFIG_DISABLE_ES2015_ARRAYBUFFER_BUILTIN to
CONFIG_DISABLE_ES2015_TYPEDARRAY_BUILTIN
Because typedarray depends on arraybuffer and it doesn't make sense to
enable arraybuffer only.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-03-30 21:22:22 +08:00
Zidong Jiang
16d5d6f79d
Add a simple Job queue in default port. ( #1685 )
...
Job queue (event loop) is the basis of Promise. Each port should implement their own job queue.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-03-28 21:15:01 +08:00
Zidong Jiang
8571ebfae5
Implement %TypedArray%.from and fix the issue #1670 ( #1679 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
2017-03-06 19:07:02 +08:00
Zidong Jiang
df4064c18e
Implement ecma_object_get_class_name for all ES2015 builtin object ( #1617 )
...
Fix issue #1613
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-27 09:12:31 +01:00
Zidong Jiang
f1d43784f5
No other objects should be allocated before a typedarray is fully ( #1619 )
...
initialized.
All members of an object must be valid when the garbage collector runs,
so no allocations are allowed during typed array initialization.
Fix issue #1605
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-25 09:23:44 +08:00
Zidong Jiang
4727202c8e
Add typedarray routine:reverse ( #1585 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-16 18:32:13 +01:00
Zidong Jiang
64a340ffeb
typedarray routine: filter ( #1581 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-15 19:20:15 +01:00
Zidong Jiang
24e6c3f062
Add typedarray routine: reduce and reduceRight ( #1569 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-10 13:36:00 +01:00
Zidong Jiang
7b01b29ec8
Add typedarray routine: every, some, foreach, and map ( #1566 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-02-09 08:49:00 +01:00
Zidong Jiang
0547b31c16
[ES2015][TypedArray] add other 8 types ( #1532 )
...
Add Uint8Array, Int16Array Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array and Uint8ClampedArray. Support the conversion between any pairs of those types.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-01-24 15:06:31 +01:00
Zidong Jiang
4f3dc2f37c
Update macro definitions in Curie-BSP target ( #1525 )
...
* add JERRY_JS_PARSER
* add CONFIG_DISABLE_ARRAYBUFFER_BUILTIN
* add CONFIG_DISABLE_TYPEDARRAY_BUILTIN
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-01-16 09:22:15 +01:00
Zidong Jiang
adfe61b4ed
[ES2015 profile]add TypedArray intrinsic object ( #1507 )
...
* add %TypedArray% intrinsic object
* implement Int8Array
* will implement other types and prototype functions
in the following patches.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2017-01-13 11:04:34 +01:00
Zidong Jiang
85b6e01bc2
Stop inlining the ArrayBuffer helper functions. ( #1484 )
...
Related issue #1468 .
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-12-12 20:07:51 +01:00
Zidong Jiang
551aaa58e6
Fix unchecked size number conversion in ArrayBuffer ( #1479 )
...
Free_value after ecma_op_to_number and a related test file.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-12-09 14:54:34 +01:00
Zidong Jiang
fb2edd8556
Add ArrayBuffer regression tests ( #1477 )
...
Add a set of tests to ensure basic coverage of the ArrayBuffer built-in. Support for ArrayBuffer was added in #1467 .
Closes #1475 .
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-12-09 08:04:49 +01:00
Zidong Jiang
29d058cec4
Add ES2015 feature: ArrayBuffer ( #1467 )
...
This patch implements ArrayBuffer and ArrayBuffer.prototype built-in objects.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-12-07 14:04:01 +01:00
Zidong Jiang
7b7d86f5fd
Remove the vm_run_with_inline. ( #1363 )
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-09-20 13:11:53 +02:00
Zidong Jiang
86ac6445e8
Fix bug in vm call_stack_size calculation ( #1345 )
...
call_stack_size should be register_count + maximum stack depth
* We don't add in the parser to save the size of snapshot header
* jerry_snapshot_version 5 -> 6
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-09-15 09:54:01 +02:00
Zidong Jiang
27deda5712
remove the alloca.h because of #1294
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-09-06 12:07:31 +08:00
Zidong Jiang
04e597a6a4
add target port: curie_bsp
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-08-27 19:02:38 +08:00
Zidong Jiang
be1029d1d1
fix bug: move jerry_make_api_unavailable into the end of jerry_cleanup
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-08-24 14:08:59 +08:00
Zidong Jiang
ca39875690
fix bug of "deref bytecode twice" in jerry_exec_snapshot
...
Enable the snapshot related test code in test-api.c
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-07-19 18:56:06 +08:00
Zidong Jiang
6084f0845c
Fix bug in jerry_string_to_char_buffer.
...
str_len can smaller than buffer_size.
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-07-15 21:06:47 +08:00
Zidong Jiang
9ab24b3241
remove the c++ syntax, struct::xxx
...
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-02-05 12:33:27 +01:00
Zidong Jiang
dfb22c3441
refactor rcs_chunked_list and remove its c++ features
...
issue #806
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2016-02-05 11:11:36 +01:00
Zidong Jiang
3d286b46d0
Fix bug in linked_list_block_size().
...
and Ruben Ayrapetyan fix a bug in linked_list_switch_to_next_elem
Related issue: #720
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
2015-12-02 12:12:03 +03:00