Bug 795104 followup - Account for loadSource api change. r=me a=akeybl
authorBenjamin Peterson <benjamin@python.org>
Wed, 21 Nov 2012 15:48:45 -0600
changeset 117044 3c52000ddaea95630b2192dbe0354bf7b1142477
parent 117043 667c8643ee52efb550914001288231784ca8a39f
child 117045 7f76d7828b3ddfb983aeb6add14bc35abe676e20
push id1727
push userbenjamin@python.org
push dateWed, 21 Nov 2012 21:48:58 +0000
treeherdermozilla-beta@3c52000ddaea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, akeybl
bugs795104
milestone18.0
Bug 795104 followup - Account for loadSource api change. r=me a=akeybl
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -5590,17 +5590,17 @@ JS_DecompileScript(JSContext *cx, JSScri
 
     AssertHeapIsIdle(cx);
     CHECK_REQUEST(cx);
     RootedScript script(cx, scriptArg);
     RootedFunction fun(cx, script->function());
     if (fun)
         return JS_DecompileFunction(cx, fun, indent);
     bool haveSource = script->scriptSource()->hasSourceData();
-    if (!haveSource && !JSScript::loadSource(cx, script, &haveSource))
+    if (!haveSource && !script->loadSource(cx, &haveSource))
         return NULL;
     return haveSource ? script->sourceData(cx) : js_NewStringCopyZ(cx, "[no source]");
 }
 
 JS_PUBLIC_API(JSString *)
 JS_DecompileFunction(JSContext *cx, JSFunction *funArg, unsigned indent)
 {
     JS_THREADSAFE_ASSERT(cx->compartment != cx->runtime->atomsCompartment);