diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-06 03:01:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 11:01:28 +0200 |
commit | 0bbdbace02d8b17a02bd3c631b82f508d0effa4a (patch) | |
tree | 836c1faac1dd7e1afc358255554f88e934f282be /ext/fs/30_fs.js | |
parent | 5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b (diff) |
refactor(core): ensureFastOps is an op-generating proxy (#19377)
Startup benchmark shows no changes (within 1ms, identical system/user
times).
Diffstat (limited to 'ext/fs/30_fs.js')
-rw-r--r-- | ext/fs/30_fs.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js index f14fcd5d1..f7c07f26a 100644 --- a/ext/fs/30_fs.js +++ b/ext/fs/30_fs.js @@ -10,13 +10,7 @@ const { op_fs_truncate_async, op_fs_link_async, op_fs_flock_async, -} = Deno.core.generateAsyncOpHandler( - "op_fs_chmod_async", - "op_fs_ftruncate_async", - "op_fs_truncate_async", - "op_fs_link_async", - "op_fs_flock_async", -); +} = Deno.core.ensureFastOps(); const primordials = globalThis.__bootstrap.primordials; const { ArrayPrototypeFilter, |