Bug 698378 - Give nsIScriptContext::EvaluateStringWithValue a JSObject* scope parameter; r=peterv
This commit is contained in:
@@ -1646,6 +1646,8 @@ _evaluate(NPP npp, NPObject* npobj, NPString *script, NPVariant *result)
|
||||
}
|
||||
|
||||
obj = JS_ObjectToInnerObject(cx, obj);
|
||||
NS_ABORT_IF_FALSE(obj,
|
||||
"JS_ObjectToInnerObject should never return null with non-null input.");
|
||||
|
||||
// Root obj and the rval (below).
|
||||
jsval vec[] = { OBJECT_TO_JSVAL(obj), JSVAL_NULL };
|
||||
|
||||
Reference in New Issue
Block a user