mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 18:20:04 +00:00
fix inner concurrent function call fail
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com> Change-Id: If9196b61eb23357cbff3edcd5fc34fd83e49e340
This commit is contained in:
parent
edf5dc31ac
commit
553e1261af
@ -661,6 +661,10 @@ void EcmaVM::TriggerConcurrentCallback(JSTaggedValue result, JSTaggedValue hint)
|
||||
return;
|
||||
}
|
||||
JSHandle<JSFunction> functionInfo(functionValue);
|
||||
if (functionInfo->IsCallNapi()) {
|
||||
LOG_ECMA(INFO) << "Function is not taskpool task";
|
||||
return;
|
||||
}
|
||||
JSTaggedValue extraInfoValue = functionInfo->GetFunctionExtraInfo();
|
||||
if (!extraInfoValue.IsJSNativePointer()) {
|
||||
LOG_ECMA(INFO) << "FunctionExtraInfo is not JSNativePointer";
|
||||
|
@ -2569,6 +2569,7 @@ bool JSNApi::InitForConcurrentFunction(EcmaVM *vm, Local<JSValueRef> function, v
|
||||
return false;
|
||||
}
|
||||
transFunc->SetFunctionExtraInfo(thread, nullptr, nullptr, taskInfo);
|
||||
transFunc->SetCallNapi(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user