@@ -40,10 +40,10 @@ index c62a5b8952400ff0dd8818c31a3e07622b63725c..36f61f57e951e1abfeb2fedb831b55c6
40
40
}
41
41
HistogramBase* histogram;
42
42
diff --git a/src/node_file.cc b/src/node_file.cc
43
- index 6b98a13099990918dc619c47124c8538bbee5e2d..307492bf3dfce7b4a476c448bec666b8116dc431 100644
43
+ index 4bdbfa1be2c22f6a823acc380efe15c8d72f66ce..83f482612fae2d7ebf9bfd6817d334c239f8a218 100644
44
44
--- a/src/node_file.cc
45
45
+++ b/src/node_file.cc
46
- @@ -1060,22 +1060,10 @@ static int32_t FastInternalModuleStat(
46
+ @@ -1060,13 +1060,8 @@ static int32_t FastInternalModuleStat(
47
47
// NOLINTNEXTLINE(runtime/references) This is V8 api.
48
48
FastApiCallbackOptions& options) {
49
49
// This needs a HandleScope which needs an isolate.
@@ -54,20 +54,11 @@ index 6b98a13099990918dc619c47124c8538bbee5e2d..307492bf3dfce7b4a476c448bec666b8
54
54
- }
55
55
-
56
56
- HandleScope scope(isolate);
57
- - Environment* env = Environment::GetCurrent(recv->GetCreationContextChecked());
58
57
+ Environment* env = Environment::GetCurrent(options.isolate);
59
58
+ HandleScope scope(env->isolate());
60
59
61
60
auto path = std::filesystem::path(input.data, input.data + input.length);
62
- - if (!env->permission()->is_granted(
63
- - env, permission::PermissionScope::kFileSystemRead, path.string()))
64
- - [[unlikely]] {
65
- - options.fallback = true;
66
- - return -1;
67
- - }
68
61
69
- switch (std::filesystem::status(path).type()) {
70
- case std::filesystem::file_type::directory:
71
62
diff --git a/src/node_wasi.cc b/src/node_wasi.cc
72
63
index 468c2e59903fefe58d9c178d3afac3ef5b09f611..23a376e52e08a8af49dd47c47488552e01287426 100644
73
64
--- a/src/node_wasi.cc
0 commit comments