Skip to content

Commit

Permalink
fix: allow more file APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyannyacha committed Nov 12, 2024
1 parent 33e396a commit d657bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/base/test_cases/user-worker-san-check/.blocklisted
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ link
linkSync
lstat
lstatSync
makeTempDir
makeTempDirSync
makeTempFile
makeTempFileSync
mkdir
mkdirSync
openSync
readDir
Expand Down
2 changes: 2 additions & 0 deletions crates/sb_core/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,8 @@ globalThis.bootstrapSBEdge = (opts, extraCtx) => {
'writeTextFile': true,
'readFile': true,
'readTextFile': true,
'mkdir': true,
'makeTempDir': true,

'kill': MOCK_FN,
'exit': MOCK_FN,
Expand Down

0 comments on commit d657bc3

Please sign in to comment.