diff options
author | 2022-04-02 05:11:16 -0700 | |
---|---|---|
committer | 2022-04-02 05:11:16 -0700 | |
commit | b8263d097527efb64119a86b82c1e9dcabf40273 (patch) | |
tree | 983383d795742cbc7c03a96e13cf27941411e02b | |
parent | 95d68b26a60ffb1065119c72cd681126a06fa9be (diff) | |
download | bun-b8263d097527efb64119a86b82c1e9dcabf40273.tar.gz bun-b8263d097527efb64119a86b82c1e9dcabf40273.tar.zst bun-b8263d097527efb64119a86b82c1e9dcabf40273.zip |
s/Buffer/TypedArray
-rw-r--r-- | src/javascript/jsc/node/node_fs.zig | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/javascript/jsc/node/node_fs.zig b/src/javascript/jsc/node/node_fs.zig index f7a9c59b5..e625d64da 100644 --- a/src/javascript/jsc/node/node_fs.zig +++ b/src/javascript/jsc/node/node_fs.zig @@ -69,7 +69,7 @@ const Arguments = struct { const old_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "oldPath must be a string or Buffer", + "oldPath must be a string or TypedArray", .{}, ctx, exception, @@ -81,7 +81,7 @@ const Arguments = struct { const new_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "newPath must be a string or Buffer", + "newPath must be a string or TypedArray", .{}, ctx, exception, @@ -103,7 +103,7 @@ const Arguments = struct { const path = PathOrFileDescriptor.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -181,7 +181,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -307,7 +307,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -378,7 +378,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -483,7 +483,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -573,7 +573,7 @@ const Arguments = struct { const old_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "oldPath must be a string or Buffer", + "oldPath must be a string or TypedArray", .{}, ctx, exception, @@ -587,7 +587,7 @@ const Arguments = struct { const new_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "newPath must be a string or Buffer", + "newPath must be a string or TypedArray", .{}, ctx, exception, @@ -610,7 +610,7 @@ const Arguments = struct { const old_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "target must be a string or Buffer", + "target must be a string or TypedArray", .{}, ctx, exception, @@ -624,7 +624,7 @@ const Arguments = struct { const new_path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -662,7 +662,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -702,7 +702,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -741,7 +741,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -789,7 +789,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -874,7 +874,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, @@ -960,7 +960,7 @@ const Arguments = struct { const path = PathLike.fromJS(ctx, arguments, exception) orelse { if (exception.* == null) { JSC.throwInvalidArguments( - "path must be a string or Buffer", + "path must be a string or TypedArray", .{}, ctx, exception, |