mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
fix bugs found by exception scope verification (#20285)
Co-authored-by: 190n <7763597+190n@users.noreply.github.com>
This commit is contained in:
@@ -124,6 +124,7 @@ zig += `
|
||||
extern fn Bun__createErrorWithCode(globalThis: *JSC.JSGlobalObject, code: Error, message: *bun.String) JSC.JSValue;
|
||||
|
||||
/// Creates an Error object with the given error code.
|
||||
/// If an error is thrown while creating the Error object, returns that error instead.
|
||||
/// Derefs the message string.
|
||||
pub fn toJS(this: Error, globalThis: *JSC.JSGlobalObject, message: *bun.String) JSC.JSValue {
|
||||
defer message.deref();
|
||||
|
||||
Reference in New Issue
Block a user