summaryrefslogtreecommitdiffstats
path: root/js/src/jsfun.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 19:05:28 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:22 -0400
commitc2b1e70b763660da2a41a826b4049360090ff373 (patch)
tree81de2c5d99d5ad4be3c1e619d1e9d5ff061e6d9e /js/src/jsfun.cpp
parent739a81958035410ddd9b230354a56c909cc5c816 (diff)
downloadUXP-c2b1e70b763660da2a41a826b4049360090ff373.tar
UXP-c2b1e70b763660da2a41a826b4049360090ff373.tar.gz
UXP-c2b1e70b763660da2a41a826b4049360090ff373.tar.lz
UXP-c2b1e70b763660da2a41a826b4049360090ff373.tar.xz
UXP-c2b1e70b763660da2a41a826b4049360090ff373.zip
1320408 - Part 3: Remove JSContext* parameter from JSFunction::getBoundFunctionArgument.
Diffstat (limited to 'js/src/jsfun.cpp')
-rw-r--r--js/src/jsfun.cpp6
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