zig: make throw use JSError (#15444)

This commit is contained in:
Meghan Denny
2024-12-02 14:19:18 -08:00
committed by GitHub
parent 56ad4cc4a6
commit 2d441d868b
58 changed files with 872 additions and 1632 deletions

View File

@@ -67,8 +67,7 @@ fn pbkdf2Sync(globalThis: *JSC.JSGlobalObject, callframe: *JSC.CallFrame) bun.JS
if (!data.run(output.slice())) {
const err = Crypto.createCryptoError(globalThis, BoringSSL.ERR_get_error());
BoringSSL.ERR_clear_error();
globalThis.throwValue(err);
return .zero;
return globalThis.throwValue(err);
}
return out_arraybuffer;