diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-26 13:08:45 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-26 16:19:04 +0200 |
commit | c59c9682d351e641f184e1f8095f399fee179f62 (patch) | |
tree | 137c732cac39f8cf80ed7e682a4c834c6997d390 /js/src/proxy/BaseProxyHandler.cpp | |
parent | 565ae72f5af3bcc9fb85945233e2a7afa115d435 (diff) | |
download | UXP-c59c9682d351e641f184e1f8095f399fee179f62.tar UXP-c59c9682d351e641f184e1f8095f399fee179f62.tar.gz UXP-c59c9682d351e641f184e1f8095f399fee179f62.tar.lz UXP-c59c9682d351e641f184e1f8095f399fee179f62.tar.xz UXP-c59c9682d351e641f184e1f8095f399fee179f62.zip |
Issue #1257 - Part1: Remove watch class-hook and proxy trap.
Diffstat (limited to 'js/src/proxy/BaseProxyHandler.cpp')
-rw-r--r-- | js/src/proxy/BaseProxyHandler.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/js/src/proxy/BaseProxyHandler.cpp b/js/src/proxy/BaseProxyHandler.cpp index 8d5f30a19..423aa8671 100644 --- a/js/src/proxy/BaseProxyHandler.cpp +++ b/js/src/proxy/BaseProxyHandler.cpp @@ -419,20 +419,6 @@ BaseProxyHandler::setImmutablePrototype(JSContext* cx, HandleObject proxy, bool* } bool -BaseProxyHandler::watch(JSContext* cx, HandleObject proxy, HandleId id, HandleObject callable) const -{ - JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_CANT_WATCH, - proxy->getClass()->name); - return false; -} - -bool -BaseProxyHandler::unwatch(JSContext* cx, HandleObject proxy, HandleId id) const -{ - return true; -} - -bool BaseProxyHandler::getElements(JSContext* cx, HandleObject proxy, uint32_t begin, uint32_t end, ElementAdder* adder) const { |