SpiderMonkey 38 upgrade: 15/35
Temporary workaround dropping of parent parameter from JS_NewObject* by switching to JS_NewObjectWithGivenProto. We should just drop support for serializing the parent since upstream is dropping the parent parameter from all those functions. Patch by leper. Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906 and https://bugzilla.mozilla.org/show_bug.cgi?id=1136345 This was SVN commit r18669.
This commit is contained in:
parent
c3710c9632
commit
ef764d5d64
@ -189,7 +189,8 @@ jsval CStdDeserializer::ReadScriptVal(const char* UNUSED(name), JS::HandleObject
|
||||
if (!proto || !parent)
|
||||
throw PSERROR_Deserialize_ScriptError();
|
||||
|
||||
obj.set(JS_NewObject(cx, nullptr, proto, parent));
|
||||
// TODO: Remove support for parent since this is dropped upstream SpiderMonkey
|
||||
obj.set(JS_NewObjectWithGivenProto(cx, nullptr, proto, parent));
|
||||
if (!obj)
|
||||
throw PSERROR_Deserialize_ScriptError("JS_NewObject failed");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user