Commit Graph

306 Commits

Author SHA1 Message Date
查维
f0d930084a Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-09 02:29:46 +00:00
openharmony_ci
e5ea5c2c0c
!4394 支持ECMA2023规范Builtins 允许Symbol作为弱容器的key
Merge pull request !4394 from 吴文璐/symbol_for_weak
2023-08-09 01:38:53 +00:00
openharmony_ci
16706f0224
!4566 Add optimization for StableJSArray in StArraySpread
Merge pull request !4566 from duzhiyuan/master
2023-08-04 09:31:32 +00:00
DDOSvoid
e32d91ac0f Add optimization for StableJSArray in StArraySpread
issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Q14Z
Signed-off-by: DDOSvoid <DDOSvoid@163.com>

Change-Id: I2d4efa17d06f0673241d68d11ff1e64e6efccc2f
2023-08-04 15:56:24 +08:00
openharmony_ci
426798d7f5
!4521 [Bug]: 运行ABC文件过程中,函数panda::ecmascript::JSHClass::UnregisterOnProtoChain未有效判断protoDetailsValue不为HeapObject的场景导致非法内存访问漏洞
Merge pull request !4521 from 李晨帅/master
2023-08-04 07:32:05 +00:00
lichenshuai
fdfbc7d143 未有效判断protoDetailsValue不为HeapObject的场景导致非法内存访问漏洞
仅在为ProtoChangeDetails时才设置HClass的ProtoChangeDetails。

Issue: #I7K7HN

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I7339e378e1cd5e5dec81740c855180485bca4782
2023-08-04 14:28:01 +08:00
openharmony_ci
827770770a
!4516 Bugfix on JSStableArray::FastCopyFromArrayToTypedArray
Merge pull request !4516 from chenjingxiang/fast_copy_array_to_typed_array
2023-08-02 02:33:22 +00:00
quiet-thought
04798afdf9 Bugfix on BuiltinsDataView::SetViewValue and GetViewValue
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I7NVPC

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I32c07c114185ba55902c54b4d25af61e1ba4b60d
2023-08-02 09:56:01 +08:00
王笑佳
704b679647 Fix app freeze
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7OZIL

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-29 20:00:52 +08:00
quiet-thought
7b2712aa3b Bugfix on IsDst Function on Windows Platform
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7O8T9

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Idad04e9b1e7fa98750d1cbdf610ad7d95a0961bb
2023-07-26 18:08:07 +08:00
quiet-thought
3442c34d96 Bugfix on JSStableArray::FastCopyFromArrayToTypedArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NUZM

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I0f2f6c8e3c484d62e1bc53594641ca1bda1bd452
2023-07-25 20:44:21 +08:00
openharmony_ci
0416c4206c
!4494 Bugfix on BuiltinsArray::Join cicular reference problem
Merge pull request !4494 from chenjingxiang/join_cicular_br
2023-07-24 13:47:40 +00:00
wuwenlu
5ed9790ec7 allow the use of most Symbols as keys in weak collections
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-07-24 06:27:45 -07:00
quiet-thought
88dc8aab97 Bugfix on BuiltinsArray::Join cicular reference problem
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NB0T

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Ie63a9f76b0dcdee0e9422b6fa8e8886a78256c96
2023-07-24 15:58:59 +08:00
openharmony_ci
047df4b829
!4405 Add pure NaN for DataView
Merge pull request !4405 from maojunwei/master
2023-07-24 04:01:48 +00:00
dov1s
1e341814f9 Add pure NaN for DataView
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7K5TV?from=project-issue

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I4944d5cfd9a38e0a8fe7fb57cff1efa5dc436ae6
2023-07-24 10:21:23 +08:00
openharmony_ci
98fec81ee2
!4456 [Bug]: 汇编解释器中进行乘法运算时返回的结果导致后续除法无法区分±Infinity
Merge pull request !4456 from 李晨帅/master
2023-07-19 09:12:39 +00:00
quiet-thought
3fe4f36d1c [Bug]: Bugfix on Array.slice call ArrayCreate to create dictionary mode array
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7M4TV

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I01d729837f59ea9197686f3144a688ec1429ae54
2023-07-19 12:12:58 +08:00
lichenshuai
8c5ac2e445 [Bug]: 汇编解释器中进行乘法运算时返回的结果导致后续除法无法区分±Infinity
修复了浮点数0取相反数的结果仍然为0的问题。

Issue: #I7M4ZW

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: If698fc0162bca664a3187c42910f823e36f203f3
2023-07-19 09:37:43 +08:00
openharmony_ci
1b0ac0aa07
!4425 CreateFromTypedArray byteLength data overflow
Merge pull request !4425 from chenjingxiang/create_from_buffer_br
2023-07-18 02:14:18 +00:00
openharmony_ci
6d73d95ec8
!4447 Fix Regexp unit test
Merge pull request !4447 from 王笑佳/regexp
2023-07-18 01:04:56 +00:00
openharmony_ci
304b619525
!4430 import commonjs,exports properties is DictionaryMode
Merge pull request !4430 from yaochaonan/cjs
2023-07-17 14:43:08 +00:00
yaochaonan
32bfb8a4b5 Add for cjs when exports is dictionary
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7L65X?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Iec3c5de91895df485b6de78e6faba344f12094aa
2023-07-17 20:12:14 +08:00
王笑佳
f14a0bb111 Fix Regexp unit test
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7LN7T

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-17 19:41:55 +08:00
quiet-thought
9f586b533b CreateFromTypedArray byteLength data overflow
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I7KZJ7

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Id0c0a875086026cec97b742c9ff4a56b62d06006
2023-07-17 14:09:08 +08:00
openharmony_ci
fb96fa25c8
!4422 [Bug]: 运行ABC文件过程中,函数panda::ecmascript::EcmaContext::PrintJSErrorInfo进行异常处理时未正确判断error.constructor.prototype.name类型直接将数值作为指针导致非法内存访问漏洞
Merge pull request !4422 from 李晨帅/master
2023-07-15 06:40:45 +00:00
openharmony_ci
d3f5f08846
!4410 Bugfix: In OrdinaryGetOwnProperty function, data accessor.value may not have property box
Merge pull request !4410 from yaochaonan/bugfix
2023-07-15 03:53:54 +00:00
lichenshuai
840fc35ec6 [Bug]: error.constructor.prototype.name类型直接将数值作为指针导致非法内存访问漏洞
name被修改为了整数类型,但在PrintJSErrorInfo中被直接视为EcmaString,导致在取值时发生非法内存访问。

Issue: #I7KW69

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Iae5b86beda282992fd2dd623ec9bf7bc54f03af6
2023-07-15 11:35:05 +08:00
yaochaonan
1fea6c4d95
update test/moduletest/dataproperty/dataproperty.js.
Signed-off-by: yaochaonan <yaochaonan@huawei.com>
2023-07-15 02:39:04 +00:00
yaochaonan
24cbae60f8
update test/moduletest/dataproperty/dataproperty.js.
Signed-off-by: yaochaonan <yaochaonan@huawei.com>
2023-07-15 02:38:34 +00:00
zha.wei
96483175aa description:ECMA Script 2023规范-支持Array/TaggedArray prototype.toReversed
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-13 19:34:22 +08:00
openharmony_ci
4481572e7a
!4397 [Bug]: 修复BigInt范围过大问题
Merge pull request !4397 from 李晨帅/master
2023-07-12 07:28:13 +00:00
yaochaonan
a919fdcab2 Bugfix:dataAccessor judge propertybox first.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7KABT?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ibdd72fe2448201336615b497bab7df37a1b1b1e5
2023-07-11 20:54:28 +08:00
openharmony_ci
008e8bab91
!4296 支持ECMA2022规范Builtins Error新增cause属性
Merge pull request !4296 from 吴文璐/for_error_cause
2023-07-08 15:51:34 +00:00
openharmony_ci
8bdcc56691
!4330 支持ECMA2022规范新增Ark内部TaggedArray.At方法
Merge pull request !4330 from 查维/master
2023-07-08 15:23:45 +00:00
lichenshuai
4c924556f9 [Bug]: 修复BigInt范围过大问题
debug下挂在ASSERT,此时右侧操作数过大,应该提前抛出异常。

Issue: #I7JMNB

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I68cce7dcb8cefe6f3d05b0b329c31260d1e21441
2023-07-08 15:03:22 +08:00
openharmony_ci
ccd078518c
!4386 memcmp size is wrongly set in EcmaString::StringsAreEquals function.
Merge pull request !4386 from yaochaonan/bugfix
2023-07-07 13:27:25 +00:00
openharmony_ci
f60dec957b
!4367 Fix Regexp Unit cases
Merge pull request !4367 from 王笑佳/master
2023-07-07 13:04:25 +00:00
yaochaonan
0e846f3aa1 Bugfix memcmp size is wrongly set in stringEqual function.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7J6CA?from=project-issue
Signed-off-by: yaochaonan <yaochaonan@huawei.com>

Change-Id: I034cbb0e2b4d9e3497d8fd20e9a368f4385e7c7f
2023-07-07 10:28:10 +08:00
王笑佳
617c25623b Fix Regexp Unit cases
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7I9RL

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-07 09:45:11 +08:00
openharmony_ci
4ecfd87663
!4300 支持ECMA2022规范新增Builtins函数%TypedArray%.prototype.at
Merge pull request !4300 from 吴文璐/for_typedarray_at
2023-07-04 13:12:25 +00:00
openharmony_ci
e646075fc2
!4332 support multi context
Merge pull request !4332 from xiongluo/multi_context
2023-07-04 11:59:24 +00:00
wuwenlu
70fa8fe91d cause property for Error objects
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-07-04 00:26:03 -07:00
wuwenlu
84b9fa645f %TypedArray%.prototype.at
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-07-03 23:23:32 -07:00
openharmony_ci
cf0655a41d
!4211 支持ECMA2022规范新增Builtins函数Object.hasOwn
Merge pull request !4211 from 查维/master
2023-07-04 04:38:53 +00:00
xiongluo
d04a78f195 support multi context
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: If708bb8d514503105e965226532dad41c12d73d7
2023-07-03 21:30:19 +08:00
openharmony_ci
0db98de96a
!4346 [Bug]: AsyncGeneratorResolve遇到空队列问题
Merge pull request !4346 from 李晨帅/master
2023-07-01 11:11:47 +00:00
lichenshuai
a99fcc7f30 [Bug]: AsyncGeneratorResolve遇到空队列问题
在debug模式下,挂在AsyncGeneratorResolve字节码遇到空队列,
按照ECMA规范分析,执行两次next()后,状态应该为completed且队列应该为空。此时,不需要进入对应逻辑。

Issue: #I7HA9B

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I6559bd8d60f78341ee6783d636b6d6fa7fe55391
2023-06-30 10:02:48 +08:00
zha.wei
c0efe2aaaa description: code style fix
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-06-28 19:18:28 +08:00
zha.wei
d56817955d description:add Object.hasOwn js test case
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-06-28 19:10:04 +08:00