Commit Graph

119 Commits

Author SHA1 Message Date
DaiHN
1d676b9df7 Throw JS error when find abc failed
--------
1. Remove redundant function interface.
2. Throw JS error when find abc failed
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I67R5D?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I7b8cdc521d660d6651cf9b08863154756bbd0973
2023-01-17 21:01:22 +08:00
openharmony_ci
0e1f7e7bff
!3420 Bugfix of using " import "./test.js" " to load cjs module
Merge pull request !3420 from DaiHN/esmbugfix-f
2023-01-14 08:23:51 +00:00
g00416891
4669062b16 Judge special value use Isxxx() instead of equal
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I3113af0caddc39519d070cc370d1843e6177982c
2023-01-14 10:20:50 +08:00
DaiHN
ab6219dbc3 Bugfix of using " import "./test.js" " to load cjs module
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AG7E?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I5e1e40e850727073f7e9151c2695f862d1ae4e6a
2023-01-13 16:46:21 +08:00
changjiaxing
2b3adae049 Module Compatible with oldisa
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I69J71

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I79e5d1c26c41cf2fcb1eab26921e5e82501b0e28
2023-01-11 19:27:25 +08:00
openharmony_ci
0d3ba8f125
!3352 Fix cross-app hsp load path
Merge pull request !3352 from hwyml/dev
2023-01-09 11:17:40 +00:00
openharmony_ci
1639f8a106
!3228 Fix standalone UT and unify it with test262
Merge pull request !3228 from Zhoucong/fix_ut
2023-01-09 11:04:04 +00:00
lordwithcc
122533d4da Merge branch 'master' into fix_ut 2023-01-09 17:55:37 +08:00
yangmingliang
96a9477058 fix cross-app hsp load path
Signed-off-by: yangmingliang <yangmingliang9@huawei.com>
Change-Id: I1acb90369fb5f835fc2f68ae91fab50807a67dd4
2023-01-09 17:45:30 +08:00
huangfeijie
5309d1cc05 support import in taskpool
call the InitForConcurrentFunction and set the module
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I697ZA

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2023-01-09 11:16:58 +08:00
openharmony_ci
51e806684d
!3316 The application cross hop previewer gives the error message
Merge pull request !3316 from 常佳兴/master
2023-01-05 03:03:54 +00:00
changjiaxing
8328f76b13 The application cross hop previewer gives the error message
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I688HN?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I35c3bf099ddbdc1364edb5d21f70bd8ef8955168
2023-01-04 19:28:51 +08:00
g00416891
db76d5d1e2 Remove redundant maybe_unused
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Id437f8983ec76aab4ac72c161c5d818dd36b0896
2023-01-04 11:06:58 +08:00
jing_han
b443081272 Modifying Code Alarms
Signed-off-by: jing_han <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I68FWD
2023-01-03 11:05:40 +08:00
openharmony_ci
841e093525
!3286 import json
Merge pull request !3286 from yaochaonan/import
2022-12-30 10:54:27 +00:00
changjiaxing
6e523f49d8 Import shared libraries across applications
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I2293a00cbdf12a84725b095b5648ef0226a6ebbc
2022-12-30 15:36:07 +08:00
yaochaonan
0d71c321b1 enable module import json
--------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I675BB
import json
--------------------

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I3b0bd6938bbb8cfca1b2fd124a64ed12b81e2748
2022-12-29 17:07:07 +08:00
jing_han
d9848ec417 Modifying Code Alarms
Signed-off-by: jing_han <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I67LC1
2022-12-27 10:34:53 +08:00
lordwithcc
e14a68036e Fix standalone UT
Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-12-27 09:39:12 +08:00
changjiaxing
f2f1467c5c Fix bug about import npm
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I67BVN?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I5f22818a4012a5c89f1949d5cbd22da3bed27415
2022-12-24 09:26:29 +00:00
maojunwei
14c11f1243 add index to filename
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6729D?from=project-issue

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I48352f4f961658df28dd176443afac59d16dc099
2022-12-22 11:37:05 +08:00
changjiaxing
a3b2736def No decompression of adaptive application cross hap
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I66DLF

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: Ib9629a7662fed1dd7ec9109fc170f76a93f4d6bd
2022-12-17 11:06:56 +08:00
openharmony_ci
27320727b5
!3223 Bug fix of import { obj } from “npm”
Merge pull request !3223 from DaiHN/esm_import_cjs
2022-12-14 09:29:28 +00:00
DaiHN
64a85e73ad Bug fix of import { obj } from “npm”
----------------------------------
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I665LA?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I98f2f5ce90e380310102fcb3eb6760b1162d599b
2022-12-14 14:47:41 +08:00
openharmony_ci
b12a67c098
!3214 fix codestyle
Merge pull request !3214 from Gymee/fix_codestyle
2022-12-13 11:32:40 +00:00
Gymee
f6e412cecb fix codestyle
Issue: #I65XYU
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ie4de168df74fb04fd11410d69a8b2b7164bb3c42
2022-12-13 11:57:48 +08:00
DaiHN
19b88917de Bug Fix of "import { obj } from ./A.js" in application
-----------------------
Modify the logic of getting properties from object;
issure :https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I65DT2?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I4dc6dd34c5bef019f17c73ab7b05f8eb4795cffc
2022-12-09 11:21:19 +08:00
openharmony_ci
c9e978aa42
!3096 Refactor quick fix loader and manager
Merge pull request !3096 from guobingbing3/master
2022-12-06 04:09:48 +00:00
g00416891
c443bd6a58 Refactor quick fix loader and manager
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I3cba0e3d28f741137ecaa790fe2e365d3ac71b4d
2022-12-05 17:25:22 +08:00
DaiHN
1619ee6e32 Fix the way of resolving CommonJS file entryPoint
----------------------------------------
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I637RM?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I86da09cbf79414fe7113a32c7bfbd918b00841ae
2022-12-05 10:19:28 +08:00
openharmony_ci
a67b34361f
!3031 Support importing a specific file of the shared library
Merge pull request !3031 from 常佳兴/master
2022-12-01 14:54:45 +00:00
linxiang
31dbc9a4e3 add log fatal before unreachable
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I272f5c052e58a1067528893d857dbd460e2d4d86
2022-12-01 16:30:13 +08:00
openharmony_ci
d2b2647219
!3080 import codefix
Merge pull request !3080 from yaochaonan/import
2022-12-01 03:38:47 +00:00
changjiaxing
66c54aecc3 Support importing a specific file of the shared library
issues:https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/I61S05

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I14783f4ff0deb140f5372b7d4b56e05bc094ce49
2022-12-01 11:13:10 +08:00
yaochaonan
11b3ff172e Add import *, import {a,b} mode when ESM require CommonJS
----------------------------------------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I639XO?from=project-issue
1.import * :In GetModuleNamespaceInternal interface, add commomjs case.
2.import {a, b}: execute CJSmodule first,then instantiate,and link with ESM.
3.import default :if cacheModule is not CjsExports, means default export.

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I1c797664974f88480037ca952860f064d645ab6f
2022-11-29 20:39:15 +08:00
Gymee
45bbb6cbf5 remove redundant spaces between operator
Issue: #I63MCO
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ifd1d4768a2f96d618e991e07fc0b7a516c5965af
2022-11-29 11:47:32 +08:00
openharmony_ci
16c8a9c96a
!3087 Integer overflow check
Merge pull request !3087 from huangzhenghua/master1125
2022-11-28 13:04:27 +00:00
huangzhenghua
51c184ca6e Integer overflow check
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I8514100acecdbd6af8712c1c7c38bf77b7dc2987
2022-11-28 16:32:55 +08:00
changjiaxing
30df4727f9 Fix the bug that the module will execute repeatedly
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I62MV0?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I501a56affdaf52ff82f8cd917ab22d6960ecd628
2022-11-28 10:57:12 +08:00
openharmony_ci
8faf3ff57f
!2977 optimize for in
Merge pull request !2977 from wpy111/master
2022-11-26 12:18:56 +00:00
wupengyong
1fdce1fc8e reason:optimize for in
description:optimize for in
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I62QDI?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I54fa0fa9401e5cfbd17db16705b58cb452474c89
2022-11-26 19:13:06 +08:00
g00416891
40393ed2f1 Fix code check
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I6432ff57276e0671b985cb7efa838253e9864c73
2022-11-26 15:24:12 +08:00
openharmony_ci
ef4671b753
!3005 Add import *,import {a} mode when ESM require CommonJS
Merge pull request !3005 from yaochaonan/import
2022-11-25 13:15:18 +00:00
yaochaonan
125748c55e Add import *,import {a,b} mode when ESM require CommonJS
---------------------------------------------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I626AP?from=project-issue
1. import * :In GetModuleNamespaceInternal interface, add commomjs case.
2. import {a, b}: execute CJSmodule first,then instantiate,and link with ESM.
3. import default :if cacheModule is not CjsExports, means default export.
---------------------------------------------------------
Signed-off-by: yaochaonan <yaochaonan@huawei.com>

Change-Id: I4a35e37f51651618b30dab6ce0e5a929e82dd149
2022-11-23 14:52:01 +08:00
DaiHN
56908d8052 Fix for supporting Dynamic import
-------------------------------------
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I61XDL?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I16beb9aa175ba3f0b62261a5b3c6566531dd4c19
2022-11-23 14:35:22 +08:00
zhaozhibo
52a20b9768 fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-15 15:31:14 +08:00
changjiaxing
500b19edd2 Add Log
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5ZUM1?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I8d0b2f4f2964da02c84e13d03575335bd7011c6d
2022-11-07 15:52:11 +08:00
changjiaxing
2c07c46ad3 Add module ut test case
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5YSV8?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I34155dbcb0c77a386ec96883103379c27d0613d8
2022-11-02 10:52:30 +08:00
changjiaxing
c3ee842d29 Fix bug about import npm
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5YGBQ?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
Change-Id: Ia61e0a99d5b70eff17a02d5280978b15dc223735
2022-10-30 21:17:38 +08:00
changjiaxing
0a0e40c983 bugfix of module
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5X61R?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
Change-Id: Ia96f0a018e9d568c673857a6d1a3189739562801
2022-10-22 19:01:40 +08:00