summaryrefslogtreecommitdiff
path: root/js/src/jsobj.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 21:33:39 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:25 -0400
commit7757e03ccc550b030fb4d342f160ee30a940f23d (patch)
treec5e2ddf55e4dc2cc82ff578cecbac939545558dd /js/src/jsobj.cpp
parentfcfaa4fbee917f821806a70b2000a91a97948c11 (diff)
downloaduxp-7757e03ccc550b030fb4d342f160ee30a940f23d.tar.gz
1320408 - Part 13: Change DebugEnvironmentProxy::getMaybeSentinelValue to static method.
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r--js/src/jsobj.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp
index 78efca8de3..58be1a283c 100644
--- a/js/src/jsobj.cpp
+++ b/js/src/jsobj.cpp
@@ -2198,7 +2198,8 @@ js::LookupNameUnqualified(JSContext* cx, HandlePropertyName name, HandleObject e
// environments.
if (env->is<DebugEnvironmentProxy>()) {
RootedValue v(cx);
- if (!env->as<DebugEnvironmentProxy>().getMaybeSentinelValue(cx, id, &v))
+ Rooted<DebugEnvironmentProxy*> envProxy(cx, &env->as<DebugEnvironmentProxy>());
+ if (!DebugEnvironmentProxy::getMaybeSentinelValue(cx, envProxy, id, &v))
return false;
isTDZ = IsUninitializedLexical(v);
} else {