mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
make node:buffer,zlib,stream,fs exception checker clear (#20494)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user