mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
zig: prefer .jsUndefined() over .undefined for JSValue (#20332)
This commit is contained in:
@@ -321,7 +321,7 @@ pub fn toJS(
|
||||
) bun.JSC.JSValue {
|
||||
return switch (this.value) {
|
||||
.move, .pending => @panic("Unexpected pending output file"),
|
||||
.noop => JSC.JSValue.undefined,
|
||||
.noop => .jsUndefined(),
|
||||
.copy => |copy| brk: {
|
||||
const file_blob = JSC.WebCore.Blob.Store.initFile(
|
||||
if (copy.fd.isValid())
|
||||
|
||||
Reference in New Issue
Block a user