mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-26 17:26:27 +00:00
SpiderMonkey 38 upgrade: 13/35
Update JS_NewObject to JS_NewPlainObject, with new parameters. Patch by leper. Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906 and https://bugzilla.mozilla.org/show_bug.cgi?id=1125356 This was SVN commit r18667.
This commit is contained in:
@@ -690,7 +690,7 @@ bool JSI_IGUIObject::getComputedSize(JSContext* cx, uint UNUSED(argc), jsval* vp
|
||||
e->UpdateCachedSize();
|
||||
CRect size = e->m_CachedActualSize;
|
||||
|
||||
JS::RootedValue objVal(cx, JS::ObjectValue(*JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr())));
|
||||
JS::RootedValue objVal(cx, JS::ObjectValue(*JS_NewPlainObject(cx)));
|
||||
try
|
||||
{
|
||||
ScriptInterface* pScriptInterface = ScriptInterface::GetScriptInterfaceAndCBData(cx)->pScriptInterface;
|
||||
|
||||
Reference in New Issue
Block a user