summaryrefslogtreecommitdiffstats
path: root/js/src/jsfun.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 18:45:53 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:21 -0400
commite5019fd4cf2142b7fe2cbfedaefcea300390393e (patch)
treed1c7aa013442c768b425f058e4a88b10b1418a0c /js/src/jsfun.h
parent9476f2e018856139f92e96e8e738bbbab615e67d (diff)
downloadUXP-e5019fd4cf2142b7fe2cbfedaefcea300390393e.tar
UXP-e5019fd4cf2142b7fe2cbfedaefcea300390393e.tar.gz
UXP-e5019fd4cf2142b7fe2cbfedaefcea300390393e.tar.lz
UXP-e5019fd4cf2142b7fe2cbfedaefcea300390393e.tar.xz
UXP-e5019fd4cf2142b7fe2cbfedaefcea300390393e.zip
1320408 - Part 1: Change JSFunction::getLength and JSFunction::getUnresolvedLength to static method.
Diffstat (limited to 'js/src/jsfun.h')
-rw-r--r--js/src/jsfun.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/jsfun.h b/js/src/jsfun.h
index b91c69d33..65fe542c4 100644
--- a/js/src/jsfun.h
+++ b/js/src/jsfun.h
@@ -306,7 +306,8 @@ class JSFunction : public js::NativeObject
nonLazyScript()->setAsyncKind(asyncKind);
}
- bool getUnresolvedLength(JSContext* cx, js::MutableHandleValue v);
+ static bool getUnresolvedLength(JSContext* cx, js::HandleFunction fun,
+ js::MutableHandleValue v);
JSAtom* getUnresolvedName(JSContext* cx);
@@ -478,7 +479,7 @@ class JSFunction : public js::NativeObject
return u.i.s.script_;
}
- bool getLength(JSContext* cx, uint16_t* length);
+ static bool getLength(JSContext* cx, js::HandleFunction fun, uint16_t* length);
js::LazyScript* lazyScript() const {
MOZ_ASSERT(isInterpretedLazy() && u.i.s.lazy_);