make node:buffer,zlib,stream,fs exception checker clear (#20494)

This commit is contained in:
Meghan Denny
2025-06-25 17:36:08 -08:00
committed by GitHub
parent 5e0caa0aa4
commit f9712ce309
132 changed files with 1088 additions and 1453 deletions

View File

@@ -26,7 +26,7 @@ generateObjectModuleSourceCode(JSC::JSGlobalObject* globalObject,
auto scope = DECLARE_CATCH_SCOPE(vm);
JSValue value = object->get(globalObject, entry);
if (scope.exception()) {
if (scope.exception()) [[unlikely]] {
scope.clearException();
value = jsUndefined();
}
@@ -66,7 +66,7 @@ generateObjectModuleSourceCodeForJSON(JSC::JSGlobalObject* globalObject,
auto scope = DECLARE_CATCH_SCOPE(vm);
JSValue value = object->get(globalObject, entry);
if (scope.exception()) {
if (scope.exception()) [[unlikely]] {
scope.clearException();
value = jsUndefined();
}