mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
rid nearly all use of ExceptionRef in zig (#15100)
Co-authored-by: nektro <nektro@users.noreply.github.com>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user