diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 19:05:28 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:22 -0400 |
commit | 2d39cef5c9053b5263a24a823bf1f9b498777ccd (patch) | |
tree | 81de2c5d99d5ad4be3c1e619d1e9d5ff061e6d9e /js/src/jsfun.cpp | |
parent | cf71ceb831cbac03ebd724ae091fe8d2f8688e25 (diff) | |
download | aura-central-2d39cef5c9053b5263a24a823bf1f9b498777ccd.tar.gz |
1320408 - Part 3: Remove JSContext* parameter from JSFunction::getBoundFunctionArgument.
Diffstat (limited to 'js/src/jsfun.cpp')
-rw-r--r-- | js/src/jsfun.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/src/jsfun.cpp b/js/src/jsfun.cpp index 41f935080..f032b822f 100644 --- a/js/src/jsfun.cpp +++ b/js/src/jsfun.cpp @@ -1325,13 +1325,11 @@ GetBoundFunctionArguments(const JSFunction* boundFun) } const js::Value& -JSFunction::getBoundFunctionArgument(JSContext* cx, unsigned which) const +JSFunction::getBoundFunctionArgument(unsigned which) const { MOZ_ASSERT(which < getBoundFunctionArgumentCount()); - RootedArrayObject boundArgs(cx, GetBoundFunctionArguments(this)); - RootedValue res(cx); - return boundArgs->getDenseElement(which); + return GetBoundFunctionArguments(this)->getDenseElement(which); } size_t |