提交 9ad90eb7 编写于 作者: Y yqhan

Add an unoverwritten interface for worker module.

issue: https://gitee.com/openharmony/xts_acts/issues/I5ZU2OSigned-off-by: Nyqhan <hanyuqing2@huawei.com>
上级 2771d73b
......@@ -16,6 +16,7 @@
import worker from '@ohos.worker';
const parentPort = worker.workerPort;
console.info("worker::" + typeof parentPort.self)
parentPort.onmessage = function(e) {
parentPort.close()
}
......@@ -16,6 +16,7 @@
import worker from '@ohos.worker';
const parentPort = worker.parentPort;
console.info("worker::" + typeof parentPort.self)
parentPort.onmessage = function(e) {
parentPort.close()
}
......@@ -13,7 +13,6 @@
* limitations under the License.
*/
// @ts-nocheck
import app from '@system.app'
import worker from "@ohos.worker"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
......
......@@ -13,7 +13,6 @@
* limitations under the License.
*/
// @ts-nocheck
import app from '@system.app'
import worker from "@ohos.worker"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册