mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 376957 followup fix: make Error readonly/permanent, patch by Brendan Eich <brendan@mozilla.org>, r=jwalden, a=schrep for M10 landing
This commit is contained in:
parent
0baef6e1a8
commit
67f25d17c8
@ -1052,7 +1052,8 @@ js_InitExceptionClasses(JSContext *cx, JSObject *obj)
|
||||
|
||||
/* Make a constructor function for the current name. */
|
||||
atom = cx->runtime->atomState.classAtoms[exceptions[i].key];
|
||||
fun = js_DefineFunction(cx, obj, atom, exceptions[i].native, 3, 0);
|
||||
fun = js_DefineFunction(cx, obj, atom, exceptions[i].native, 3,
|
||||
JSPROP_READONLY | JSPROP_PERMANENT);
|
||||
if (!fun)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user