summaryrefslogtreecommitdiff
path: root/js/src/jsfun.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 21:10:15 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:24 -0400
commit93335c3120968fac165a95978ef0dbdffe7900b4 (patch)
treeb5ce39ff2ef517de3c1f00eba6d7a810983d3aaf /js/src/jsfun.cpp
parent4d88f48fdb51a29fd66001e87a74e2d6a130fe1f (diff)
downloaduxp-93335c3120968fac165a95978ef0dbdffe7900b4.tar.gz
1320408 - Part 12: Change JSScript::sourceData to static method.
Diffstat (limited to 'js/src/jsfun.cpp')
-rw-r--r--js/src/jsfun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsfun.cpp b/js/src/jsfun.cpp
index ea64aabe2d..954fd47a07 100644
--- a/js/src/jsfun.cpp
+++ b/js/src/jsfun.cpp
@@ -973,7 +973,7 @@ js::FunctionToString(JSContext* cx, HandleFunction fun, bool prettyPrint)
};
if (haveSource) {
- Rooted<JSFlatString*> src(cx, script->sourceDataWithPrelude(cx));
+ Rooted<JSFlatString*> src(cx, JSScript::sourceDataWithPrelude(cx, script));
if (!src)
return nullptr;