Commit Graph

5 Commits

Author SHA1 Message Date
ding 1ca17779cb Fix AllocateArrayBuffer By BoundFunction NewTarget
This is a historical problem:At first, we didn't support the full feature of newTarget in ECMA spec,in order to pass some cases of test262, hack the deleted code in AllocateArrayBuffer. In fact, the object so allocated is not an arrayBuffer.

Now, we support the full feature of newTarget, just delete it and do as ECMA spec.

add allocatearraybuffer unit test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I2da7d8ce3dd58a63454ac9ecea4320458323fab9
2022-03-15 11:14:26 +08:00
xliu c4fe630067 Fix GetFloat32 of DataView
Description
  Fix Byte alignment problem of GetFloat32 in DataView
Related issue
  #I4VDZO: Fix GetFloat32 of DataView

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4478f8a5b6286fad6dc7c1f9c6efcaeac9d2d0e1
2022-02-26 15:47:15 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00