Skip to content

Commit 8fd73e6

Browse files
authored
fix(fs): allow Deno.makeTempFile[Sync] (#604)
1 parent e29bd12 commit 8fd73e6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

crates/base/test_cases/user-worker-san-check/.blocklisted

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ futime
2121
futimeSync
2222
link
2323
linkSync
24-
makeTempFile
25-
makeTempFileSync
2624
readLink
2725
readLinkSync
2826
rename

crates/base/test_cases/user-worker-san-check/.whitelisted

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ writeTextFileSync
88
readTextFileSync
99
readFileSync
1010
makeTempDirSync
11+
makeTempFileSync

ext/runtime/js/bootstrap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
680680
"readTextFile": true,
681681
"mkdir": true,
682682
"makeTempDir": true,
683+
"makeTempFile": true,
683684
"readDir": true,
684685

685686
"kill": "mock",
@@ -696,6 +697,7 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
696697
"readTextFileSync": "allowIfRuntimeIsInInit",
697698
"mkdirSync": "allowIfRuntimeIsInInit",
698699
"makeTempDirSync": "allowIfRuntimeIsInInit",
700+
"makeTempFileSync": "allowIfRuntimeIsInInit",
699701
"readDirSync": "allowIfRuntimeIsInInit",
700702

701703
// TODO: use a non-hardcoded path

0 commit comments

Comments
 (0)