summaryrefslogtreecommitdiffstats
path: root/js/src/jsscript.h
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/jsscript.h
parent4d88f48fdb51a29fd66001e87a74e2d6a130fe1f (diff)
downloadUXP-93335c3120968fac165a95978ef0dbdffe7900b4.tar
UXP-93335c3120968fac165a95978ef0dbdffe7900b4.tar.gz
UXP-93335c3120968fac165a95978ef0dbdffe7900b4.tar.lz
UXP-93335c3120968fac165a95978ef0dbdffe7900b4.tar.xz
UXP-93335c3120968fac165a95978ef0dbdffe7900b4.zip
1320408 - Part 12: Change JSScript::sourceData to static method.
Diffstat (limited to 'js/src/jsscript.h')
-rw-r--r--js/src/jsscript.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsscript.h b/js/src/jsscript.h
index 2f962ab94..74cefea07 100644
--- a/js/src/jsscript.h
+++ b/js/src/jsscript.h
@@ -1499,7 +1499,7 @@ class JSScript : public js::gc::TenuredCell
* De-lazifies the canonical function. Must be called before entering code
* that expects the function to be non-lazy.
*/
- inline void ensureNonLazyCanonicalFunction(JSContext* cx);
+ inline void ensureNonLazyCanonicalFunction();
js::ModuleObject* module() const {
if (bodyScope()->is<js::ModuleScope>())
@@ -1518,7 +1518,7 @@ class JSScript : public js::gc::TenuredCell
// directly, via lazy arguments or a rest parameter.
bool mayReadFrameArgsDirectly();
- JSFlatString* sourceData(JSContext* cx);
+ static JSFlatString* sourceData(JSContext* cx, JS::HandleScript script);
JSFlatString* sourceDataWithPrelude(JSContext* cx);
static bool loadSource(JSContext* cx, js::ScriptSource* ss, bool* worked);