diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 18:54:17 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:22 -0400 |
commit | 739a81958035410ddd9b230354a56c909cc5c816 (patch) | |
tree | a0114c15c2bddcba3592687e6ae510bc831df088 /js/src/jsarray.cpp | |
parent | e5019fd4cf2142b7fe2cbfedaefcea300390393e (diff) | |
download | uxp-739a81958035410ddd9b230354a56c909cc5c816.tar.gz |
1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.
Diffstat (limited to 'js/src/jsarray.cpp')
-rw-r--r-- | js/src/jsarray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsarray.cpp b/js/src/jsarray.cpp index ff581beec5..d28f5cb8e7 100644 --- a/js/src/jsarray.cpp +++ b/js/src/jsarray.cpp @@ -1662,11 +1662,11 @@ MatchNumericComparator(JSContext* cx, const Value& v) if (!obj.is<JSFunction>()) return Match_None; - JSFunction* fun = &obj.as<JSFunction>(); + RootedFunction fun(cx, &obj.as<JSFunction>()); if (!fun->isInterpreted() || fun->isClassConstructor()) return Match_None; - JSScript* script = fun->getOrCreateScript(cx); + JSScript* script = JSFunction::getOrCreateScript(cx, fun); if (!script) return Match_Failure; |