mirror of
https://github.com/oven-sh/bun
synced 2026-02-19 07:12:24 +00:00
zig: delete deprecated some bun.jsc apis (#21309)
This commit is contained in:
@@ -259,7 +259,7 @@ pub fn CompressionStream(comptime T: type) type {
|
||||
pub fn emitError(this: *T, globalThis: *jsc.JSGlobalObject, this_value: jsc.JSValue, err_: Error) !void {
|
||||
var msg_str = bun.String.createFormat("{s}", .{std.mem.sliceTo(err_.msg, 0) orelse ""}) catch bun.outOfMemory();
|
||||
const msg_value = msg_str.transferToJS(globalThis);
|
||||
const err_value = jsc.jsNumber(err_.err);
|
||||
const err_value: jsc.JSValue = .jsNumber(err_.err);
|
||||
var code_str = bun.String.createFormat("{s}", .{std.mem.sliceTo(err_.code, 0) orelse ""}) catch bun.outOfMemory();
|
||||
const code_value = code_str.transferToJS(globalThis);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user