Introduce JSObject::getIfPropertyExists helper
Created attachment 428074 [details] Patch
Comment on attachment 428074 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=428074&action=review Sweet! Thank you for the follow-up. I presume there might be more usages for getIfPropertyExists() in future (like around GetBindingValue). r=me with error handling suggestion. > Source/JavaScriptCore/runtime/JSObjectInlines.h:205 > + Since getIfPropertyExists() call sites should check exception either way, I think we can completely drop exception handling from this helper. At this point (hasProperty: true), we are guaranteed to be exception-free, and can just return the ternary expression.
Created attachment 428081 [details] Patch for landing
Created attachment 428082 [details] Patch for landing
Patch 428081 does not build
Committed r277224 (237495@main): <https://commits.webkit.org/237495@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428082 [details].
<rdar://problem/77690047>