Backing out bug 815010 due to test failures

This commit is contained in:
Robert O'Callahan 2012-12-13 16:06:34 +13:00
commit ddc6a67d43

View File

@ -448,13 +448,7 @@ JS_ReleaseFunctionLocalNameArray(JSContext *cx, void *mark)
JS_PUBLIC_API(JSScript *)
JS_GetFunctionScript(JSContext *cx, JSFunction *fun)
{
if (fun->isNative())
return NULL;
assertSameCompartment(cx, fun);
RawScript script = fun->getOrCreateScript(cx);
if (!script)
MOZ_CRASH();
return script;
return fun->maybeNonLazyScript();
}
JS_PUBLIC_API(JSNative)