rid nearly all use of ExceptionRef in zig (#15100)

Co-authored-by: nektro <nektro@users.noreply.github.com>
This commit is contained in:
Meghan Denny
2024-11-13 15:23:52 -08:00
committed by GitHub
parent ec91e91fda
commit f8979b05b1
26 changed files with 811 additions and 1932 deletions

View File

@@ -354,9 +354,9 @@ JSC_DEFINE_HOST_FUNCTION(jsFunctionResolveFileName,
}
}
auto result = Bun__resolveSync(globalObject, JSC::JSValue::encode(moduleName),
JSValue::encode(fromValue), false);
auto scope = DECLARE_THROW_SCOPE(globalObject->vm());
auto result = Bun__resolveSync(globalObject, JSC::JSValue::encode(moduleName), JSValue::encode(fromValue), false);
RETURN_IF_EXCEPTION(scope, {});
if (!JSC::JSValue::decode(result).isString()) {
JSC::throwException(globalObject, scope, JSC::JSValue::decode(result));