summaryrefslogtreecommitdiffstats
path: root/js/src/proxy
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 00:39:54 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:28 -0400
commit2b0c3663441e51e7ec1fa32411e2339cf81e19b9 (patch)
tree8e02ef7d80845dc17fc0fe3170d2d2efe38d5334 /js/src/proxy
parentbd6819820961aaed4c57949341fedc57feab7403 (diff)
downloadUXP-2b0c3663441e51e7ec1fa32411e2339cf81e19b9.tar
UXP-2b0c3663441e51e7ec1fa32411e2339cf81e19b9.tar.gz
UXP-2b0c3663441e51e7ec1fa32411e2339cf81e19b9.tar.lz
UXP-2b0c3663441e51e7ec1fa32411e2339cf81e19b9.tar.xz
UXP-2b0c3663441e51e7ec1fa32411e2339cf81e19b9.zip
1320408 - Part 22: Remove JSContext* parameter from ProxyObject::renew and Wrapper::Renew.
Diffstat (limited to 'js/src/proxy')
-rw-r--r--js/src/proxy/Proxy.cpp2
-rw-r--r--js/src/proxy/Wrapper.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/src/proxy/Proxy.cpp b/js/src/proxy/Proxy.cpp
index 026b40c7b..2c1cffb77 100644
--- a/js/src/proxy/Proxy.cpp
+++ b/js/src/proxy/Proxy.cpp
@@ -774,7 +774,7 @@ js::NewProxyObject(JSContext* cx, const BaseProxyHandler* handler, HandleValue p
}
void
-ProxyObject::renew(JSContext* cx, const BaseProxyHandler* handler, const Value& priv)
+ProxyObject::renew(const BaseProxyHandler* handler, const Value& priv)
{
MOZ_ASSERT(!IsInsideNursery(this));
MOZ_ASSERT_IF(IsCrossCompartmentWrapper(this), IsDeadProxyObject(this));
diff --git a/js/src/proxy/Wrapper.cpp b/js/src/proxy/Wrapper.cpp
index 43d559ff3..67f437262 100644
--- a/js/src/proxy/Wrapper.cpp
+++ b/js/src/proxy/Wrapper.cpp
@@ -312,9 +312,9 @@ Wrapper::New(JSContext* cx, JSObject* obj, const Wrapper* handler,
}
JSObject*
-Wrapper::Renew(JSContext* cx, JSObject* existing, JSObject* obj, const Wrapper* handler)
+Wrapper::Renew(JSObject* existing, JSObject* obj, const Wrapper* handler)
{
- existing->as<ProxyObject>().renew(cx, handler, ObjectValue(*obj));
+ existing->as<ProxyObject>().renew(handler, ObjectValue(*obj));
return existing;
}