summaryrefslogtreecommitdiff
path: root/js/src/jsapi.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/jsapi.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/jsapi.cpp')
-rw-r--r--js/src/jsapi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp
index f4b3c98545..3901a0e63c 100644
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -2947,9 +2947,9 @@ JS_AlreadyHasOwnPropertyById(JSContext* cx, HandleObject obj, HandleId id, bool*
return js::HasOwnProperty(cx, obj, id, foundp);
RootedNativeObject nativeObj(cx, &obj->as<NativeObject>());
- RootedShape prop(cx);
+ Rooted<PropertyResult> prop(cx);
NativeLookupOwnPropertyNoResolve(cx, nativeObj, id, &prop);
- *foundp = !!prop;
+ *foundp = prop.isFound();
return true;
}