Skip to content

Commit 3c6a40c

Browse files
committed
[v22.x] Revert "v8: enable maglev on supported architectures"
nodejs/node#54384
1 parent a25ffc7 commit 3c6a40c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

patches/node/src_stop_using_deprecated_fields_of_fastapicallbackoptions.patch

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ index c62a5b8952400ff0dd8818c31a3e07622b63725c..36f61f57e951e1abfeb2fedb831b55c6
4040
}
4141
HistogramBase* histogram;
4242
diff --git a/src/node_file.cc b/src/node_file.cc
43-
index 6b98a13099990918dc619c47124c8538bbee5e2d..307492bf3dfce7b4a476c448bec666b8116dc431 100644
43+
index 4bdbfa1be2c22f6a823acc380efe15c8d72f66ce..83f482612fae2d7ebf9bfd6817d334c239f8a218 100644
4444
--- a/src/node_file.cc
4545
+++ b/src/node_file.cc
46-
@@ -1060,22 +1060,10 @@ static int32_t FastInternalModuleStat(
46+
@@ -1060,13 +1060,8 @@ static int32_t FastInternalModuleStat(
4747
// NOLINTNEXTLINE(runtime/references) This is V8 api.
4848
FastApiCallbackOptions& options) {
4949
// This needs a HandleScope which needs an isolate.
@@ -54,20 +54,11 @@ index 6b98a13099990918dc619c47124c8538bbee5e2d..307492bf3dfce7b4a476c448bec666b8
5454
- }
5555
-
5656
- HandleScope scope(isolate);
57-
- Environment* env = Environment::GetCurrent(recv->GetCreationContextChecked());
5857
+ Environment* env = Environment::GetCurrent(options.isolate);
5958
+ HandleScope scope(env->isolate());
6059

6160
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-
- }
6861

69-
switch (std::filesystem::status(path).type()) {
70-
case std::filesystem::file_type::directory:
7162
diff --git a/src/node_wasi.cc b/src/node_wasi.cc
7263
index 468c2e59903fefe58d9c178d3afac3ef5b09f611..23a376e52e08a8af49dd47c47488552e01287426 100644
7364
--- a/src/node_wasi.cc

0 commit comments

Comments
 (0)