mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 459405 - Math property flags regressed by bug 376957. r=brendan, a=sayrer
This commit is contained in:
parent
37e098bf53
commit
fc1eca74c9
@ -710,9 +710,9 @@ js_InitMathClass(JSContext *cx, JSObject *obj)
|
||||
if (!Math)
|
||||
return NULL;
|
||||
if (!JS_DefineProperty(cx, obj, js_Math_str, OBJECT_TO_JSVAL(Math),
|
||||
JS_PropertyStub, JS_PropertyStub,
|
||||
JSPROP_READONLY | JSPROP_PERMANENT))
|
||||
JS_PropertyStub, JS_PropertyStub, 0)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!JS_DefineFunctions(cx, Math, math_static_methods))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user