Skip to content

Commit 5c28bab

Browse files
committed
fix compile error
1 parent d3760f9 commit 5c28bab

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

native/cocos/bindings/jswrapper/jsvm/ScriptEngine.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -549,17 +549,9 @@ void runJsvmTasks(JSVM_Env env) {
549549

550550
for (bool runTasks = true; runTasks;) {
551551
// Execute one foreground task (if one exists), then microtasks.
552-
if (env->terminatedOrTerminating()) {
553-
return;
554-
}
555-
556552
NODE_API_CALL(status, env, OH_JSVM_PumpMessageLoop(vm, &runTasks));
557-
558-
if (env->terminatedOrTerminating()) {
559-
return;
560-
}
561553
if (runTasks) {
562-
NODE_API_CALL(status, env, OH_JSVM_PerformMicrotaskCheckpoint(env));
554+
NODE_API_CALL(status, env, OH_JSVM_PerformMicrotaskCheckpoint(vm));
563555
}
564556
}
565557
}

0 commit comments

Comments
 (0)