Bug 698400 - Use setObject in nsXBLPrototypeHandler::EnsureEventHandler; r=jst

This commit is contained in:
Ms2ger
2011-11-26 11:14:29 +01:00
parent c75d085d4b
commit 87ff845c8e
5 changed files with 9 additions and 9 deletions

View File

@@ -1778,7 +1778,7 @@ nsJSContext::CompileEventHandler(nsIAtom *aName,
JSObject *handler = ::JS_GetFunctionObject(fun);
NS_ASSERTION(aHandler.getScriptTypeID()==JAVASCRIPT,
"Expecting JS script object holder");
return aHandler.set((void *)handler);
return aHandler.setObject(handler);
}
// XXX - note that CompileFunction doesn't yet play the nsScriptObjectHolder