Skip to content

Commit 40de73d

Browse files
authored
fix: allow Deno.lstat[Sync] (#558)
1 parent 92d91b5 commit 40de73d

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-
lstat
25-
lstatSync
2624
makeTempFile
2725
makeTempFileSync
2826
readLink

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
mkdirSync
22
readDirSync
33
removeSync
4+
lstatSync
45
statSync
56
writeFileSync
67
writeTextFileSync

ext/runtime/js/bootstrap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
653653
"cwd": true,
654654

655655
"open": true,
656+
"lstat": true,
656657
"stat": true,
657658
"realPath": true,
658659
"realPathSync": true,
@@ -671,6 +672,7 @@ globalThis.bootstrapSBEdge = (opts, ctx) => {
671672
"addSignalListener": "mock",
672673
"removeSignalListener": "mock",
673674

675+
"lstatSync": "allowIfRuntimeIsInInit",
674676
"statSync": "allowIfRuntimeIsInInit",
675677
"removeSync": "allowIfRuntimeIsInInit",
676678
"writeFileSync": "allowIfRuntimeIsInInit",

0 commit comments

Comments
 (0)