summaryrefslogtreecommitdiff
path: root/js/src/proxy/Proxy.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-24 21:19:51 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-24 21:19:51 +0000
commit46c9f72fc0b85a800d003774d3298c66e56de913 (patch)
tree0c14990331ec40eadb36d85bdc859d2f7381866f /js/src/proxy/Proxy.cpp
parenta160e7772a0f3e142b5c50ac4cd9b4f353f9b92d (diff)
downloaduxp-46c9f72fc0b85a800d003774d3298c66e56de913.tar.gz
Issue #1742 - Part 3: use JS::PropertyResult instead of Shape*
This is the meat of the issue and switches using raw shape pointers out for PropertyResult objects where feasible.
Diffstat (limited to 'js/src/proxy/Proxy.cpp')
-rw-r--r--js/src/proxy/Proxy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/proxy/Proxy.cpp b/js/src/proxy/Proxy.cpp
index 376bbcdda7..6f91dfb106 100644
--- a/js/src/proxy/Proxy.cpp
+++ b/js/src/proxy/Proxy.cpp
@@ -530,18 +530,18 @@ Proxy::trace(JSTracer* trc, JSObject* proxy)
bool
js::proxy_LookupProperty(JSContext* cx, HandleObject obj, HandleId id,
- MutableHandleObject objp, MutableHandleShape propp)
+ MutableHandleObject objp, MutableHandle<JS::PropertyResult> propp)
{
bool found;
if (!Proxy::has(cx, obj, id, &found))
return false;
if (found) {
- MarkNonNativePropertyFound<CanGC>(propp);
+ propp.setNonNativeProperty();
objp.set(obj);
} else {
+ propp.setNotFound();
objp.set(nullptr);
- propp.set(nullptr);
}
return true;
}