modify for get async function name

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
This commit is contained in:
wengchangcheng
2021-12-24 11:24:21 +08:00
parent a9b3b61631
commit 45cfc4c464
6 changed files with 42 additions and 36 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunctio
globalConst->GetHandledPrototypeString(), desc);
ASSERT(success);
}
} else if (kind == FunctionKind::NORMAL_FUNCTION) {
} else if (HasAccessor(kind)) {
JSHandle<JSTaggedValue> accessor = globalConst->GetHandledFunctionNameAccessor();
func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue());
}