diff options
author | 2022-08-18 19:06:29 -0700 | |
---|---|---|
committer | 2022-08-18 19:06:29 -0700 | |
commit | e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8 (patch) | |
tree | ec2e43f3a33bdd784473022b00121f4c597c8e09 /src/bun.js/javascript.zig | |
parent | e45ddc086fe6b3e7a32aa45607f5e3d570998137 (diff) | |
download | bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.tar.gz bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.tar.zst bun-e3c2a95e5ff4e6c6b63839f4773cc3f5aeadddc8.zip |
Faster TextDecoder
Diffstat (limited to 'src/bun.js/javascript.zig')
-rw-r--r-- | src/bun.js/javascript.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index b52ba562f..bfb6fd024 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -88,7 +88,6 @@ const EventLoop = JSC.EventLoop; const ThreadSafeFunction = JSC.napi.ThreadSafeFunction; pub const GlobalConstructors = [_]type{ WebCore.Blob.Constructor, - WebCore.TextDecoder.Constructor, JSC.Cloudflare.HTMLRewriter.Constructor, }; @@ -366,7 +365,7 @@ pub const VirtualMachine = struct { pub inline fn nodeFS(this: *VirtualMachine) *Node.NodeFS { return this.node_fs orelse brk: { this.node_fs = bun.default_allocator.create(Node.NodeFS) catch unreachable; - this.node_fs.?.* = Node.NodeFS{ .async_io = undefined }; + this.node_fs.?.* = Node.NodeFS{}; break :brk this.node_fs.?; }; } |