mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-30 13:40:51 +00:00
!3959 Fix AsyncFunctionAwait crash
Merge pull request !3959 from Gymee/fix_AsyncFunctionAwait_crash
This commit is contained in:
commit
5c4568b321
@ -130,6 +130,7 @@ void JSAsyncFunction::AsyncFunctionAwait(JSThread *thread, const JSHandle<JSTagg
|
||||
// 9.Set throwawayCapability.[[Promise]].[[PromiseIsHandled]] to true.
|
||||
JSHandle<PromiseCapability> tcap =
|
||||
JSPromise::NewPromiseCapability(thread, JSHandle<JSTaggedValue>::Cast(env->GetPromiseFunction()));
|
||||
RETURN_IF_ABRUPT_COMPLETION(thread);
|
||||
JSHandle<JSPromise>(thread, tcap->GetPromise())->SetPromiseIsHandled(true);
|
||||
|
||||
// 10.Perform ! PerformPromiseThen(promiseCapability.[[Promise]], onFulfilled, onRejected, throwawayCapability).
|
||||
|
Loading…
Reference in New Issue
Block a user