Clean Code For CodeHub Issues #96-#123 And #250-#264

According to the problems pointed out by the issuer and the
specifications compiled by Huawei, modify the non-compliant
parts of jsruntime.

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4YLCQ

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Iceb771dfd9f3aa9017205068fc50ab1a63aae08b
This commit is contained in:
xujie
2022-03-21 17:09:19 +08:00
parent 927e47335a
commit 479b7c3785
38 changed files with 75 additions and 74 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ bool JSFunction::PrototypeSetter(JSThread *thread, const JSHandle<JSObject> &sel
JSHandle<JSFunction> func(self);
JSTaggedValue protoOrDyn = func->GetProtoOrDynClass();
if (protoOrDyn.IsJSHClass()) {
// need transtion
// need transition
JSHandle<JSHClass> dynclass(thread, protoOrDyn);
JSHandle<JSHClass> newDynclass = JSHClass::TransitionProto(thread, dynclass, value);
if (value->IsECMAObject()) {