mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 19:43:48 -04:00
add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error 2. modify all compiler error issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDQE Signed-off-by: wengchangcheng <wengchangcheng@huawei.com> Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
This commit is contained in:
@@ -535,7 +535,7 @@ JSHandle<JSHClass> JSFunction::GetInstanceJSHClass(JSThread *thread, JSHandle<JS
|
||||
if (newTargetFunc->IsDerivedConstructor()) {
|
||||
JSTaggedValue newTargetProto = JSHandle<JSObject>::Cast(newTarget)->GetPrototype(thread);
|
||||
if (newTargetProto == constructor.GetTaggedValue()) {
|
||||
return GetOrCreateDerivedJSHClass(thread, newTargetFunc, constructor, ctorInitialJSHClass);
|
||||
return GetOrCreateDerivedJSHClass(thread, newTargetFunc, ctorInitialJSHClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -570,7 +570,6 @@ JSHandle<JSHClass> JSFunction::GetInstanceJSHClass(JSThread *thread, JSHandle<JS
|
||||
}
|
||||
|
||||
JSHandle<JSHClass> JSFunction::GetOrCreateDerivedJSHClass(JSThread *thread, JSHandle<JSFunction> derived,
|
||||
JSHandle<JSFunction> constructor,
|
||||
JSHandle<JSHClass> ctorInitialJSHClass)
|
||||
{
|
||||
JSTaggedValue protoOrDyn(derived->GetProtoOrDynClass());
|
||||
|
||||
Reference in New Issue
Block a user