summaryrefslogtreecommitdiff
path: root/js/src/jsarray.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 23:28:04 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:25 -0400
commit8d64bb2cc1d21ddcac3d0f3d925b54020a7ac56c (patch)
treebc6f6b9a4830a764c825e0dd78a4367b9d0a46a4 /js/src/jsarray.cpp
parentb29cd15db551f7dc8a932d7fa4e3de8e8a11448b (diff)
downloaduxp-8d64bb2cc1d21ddcac3d0f3d925b54020a7ac56c.tar.gz
1320408 - Part 14: Change some GlobalObject methods to static method.
Diffstat (limited to 'js/src/jsarray.cpp')
-rw-r--r--js/src/jsarray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsarray.cpp b/js/src/jsarray.cpp
index aef98cc603..8bbcac320a 100644
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -3246,7 +3246,7 @@ static JSObject*
CreateArrayPrototype(JSContext* cx, JSProtoKey key)
{
MOZ_ASSERT(key == JSProto_Array);
- RootedObject proto(cx, cx->global()->getOrCreateObjectPrototype(cx));
+ RootedObject proto(cx, GlobalObject::getOrCreateObjectPrototype(cx, cx->global()));
if (!proto)
return nullptr;