mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 03:44:37 +00:00
Bug 852798 - Don't use JSPROP_READONLY for shell-only customNative property. r=djvj
This commit is contained in:
parent
507071e87c
commit
366fc764c4
@ -4,3 +4,6 @@ function f() {
|
||||
}
|
||||
}
|
||||
f();
|
||||
|
||||
// Don't assert (bug 852798).
|
||||
Object.getOwnPropertyDescriptor(this, "customNative");
|
||||
|
@ -4830,7 +4830,7 @@ NewGlobalObject(JSContext *cx, JSObject *sameZoneAs)
|
||||
if (!JS_DefineProperty(cx, glob, "customNative", UndefinedValue(),
|
||||
(JSPropertyOp)its_get_customNative,
|
||||
(JSStrictPropertyOp)its_set_customNative,
|
||||
JSPROP_READONLY | JSPROP_NATIVE_ACCESSORS))
|
||||
JSPROP_NATIVE_ACCESSORS))
|
||||
return NULL;
|
||||
|
||||
/* Initialize FakeDOMObject. */
|
||||
|
Loading…
Reference in New Issue
Block a user