未验证 提交 a3770de1 编写于 作者: O openharmony_ci 提交者: Gitee

!6442 Add an unoverwritten interface for worker module.

Merge pull request !6442 from hyq5234/monthly_20221018
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
import worker from '@ohos.worker'; import worker from '@ohos.worker';
const parentPort = worker.workerPort; const parentPort = worker.workerPort;
console.info("worker::" + typeof parentPort.self)
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
parentPort.close() parentPort.close()
} }
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
import worker from '@ohos.worker'; import worker from '@ohos.worker';
const parentPort = worker.parentPort; const parentPort = worker.parentPort;
console.info("worker::" + typeof parentPort.self)
parentPort.onmessage = function(e) { parentPort.onmessage = function(e) {
parentPort.close() parentPort.close()
} }
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
// @ts-nocheck
import app from '@system.app' import app from '@system.app'
import worker from "@ohos.worker" import worker from "@ohos.worker"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
// @ts-nocheck
import app from '@system.app' import app from '@system.app'
import worker from "@ohos.worker" import worker from "@ohos.worker"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' 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.
先完成此消息的编辑!
想要评论请 注册