mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 11:34:49 -04:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user