mirror of
https://github.com/bellard/quickjs.git
synced 2026-03-31 20:28:01 +00:00
JS_SetPropertyInternal(): avoid recursing thru the prototypes if the property is found in a prototype
This commit is contained in:
parent
030333cff6
commit
6474793e38
@ -8601,6 +8601,8 @@ int JS_SetPropertyInternal(JSContext *ctx, JSValueConst obj,
|
||||
goto retry2;
|
||||
} else if (!(prs->flags & JS_PROP_WRITABLE)) {
|
||||
goto read_only_prop;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user