SpiderMonkey 38 upgrade: 14/35

JS_NewObject has no parent or proto arg anymore, use
JS_NewObjectWithGivenProto instead. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906
https://bugzilla.mozilla.org/show_bug.cgi?id=1127443 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1136345

This was SVN commit r18668.
This commit is contained in:
Itms
2016-09-02 16:29:21 +00:00
parent 8d15411abf
commit c3710c9632
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ JSObject* ScriptInterface::CreateCustomObject(const std::string& typeName) const
throw PSERROR_Scripting_TypeDoesNotExist();
JS::RootedObject prototype(m->m_cx, it->second.m_Prototype.get());
return JS_NewObject(m->m_cx, (*it).second.m_Class, prototype, JS::NullPtr());
return JS_NewObjectWithGivenProto(m->m_cx, it->second.m_Class, prototype);
}
bool ScriptInterface::CallFunctionVoid(JS::HandleValue val, const char* name)