mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 978229 - Part 2: Remove IsSealed() from Proxy.[[Delete]]. (r=jorendorff)
This commit is contained in:
parent
999cdb1d42
commit
d82daa0629
@ -1835,10 +1835,11 @@ ScriptedDirectProxyHandler::delete_(JSContext *cx, HandleObject proxy, HandleId
|
||||
|
||||
// step 6-7
|
||||
if (ToBoolean(trapResult)) {
|
||||
bool sealed;
|
||||
if (!IsSealed(cx, target, id, &sealed))
|
||||
Rooted<PropertyDescriptor> desc(cx);
|
||||
if (!GetOwnPropertyDescriptor(cx, target, id, &desc))
|
||||
return false;
|
||||
if (sealed) {
|
||||
|
||||
if (desc.object() && desc.isPermanent()) {
|
||||
RootedValue v(cx, IdToValue(id));
|
||||
js_ReportValueError(cx, JSMSG_CANT_DELETE, JSDVG_IGNORE_STACK, v, js::NullPtr());
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user