Skip to content

Commit 6fd302f

Browse files
codebytereElectron Bot
andauthored
chore: remove overwritten Node.js patch (electron#24775)
* chore: remove overwritten Node.js patch * update patches Co-authored-by: Electron Bot <anonymous@electronjs.org>
1 parent e5c721e commit 6fd302f

3 files changed

Lines changed: 2 additions & 33 deletions

File tree

patches/node/.patches

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ feat_add_flags_for_low-level_hooks_and_exceptions.patch
1313
fix_expose_tracing_agent_and_use_tracing_tracingcontroller_instead.patch
1414
pass_all_globals_through_require.patch
1515
call_process_log_from_fallback_stream_on_windows.patch
16-
fixme_use_redefined_version_of_internalmodulestat.patch
1716
fixme_remove_async_id_assertion_check.patch
1817
fixme_comment_trace_event_macro.patch
1918
fix_key_gen_apis_are_not_available_in_boringssl.patch

patches/node/fixme_use_redefined_version_of_internalmodulestat.patch

Lines changed: 0 additions & 23 deletions
This file was deleted.

patches/node/refactor_allow_embedder_overriding_of_internal_fs_calls.patch

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ index c872941b974216d94863bcbf0e597b9c09ca50e2..4e7c3c10255a0eae4d5333f88e51cf71
2222
process.config = JSONParse(internalBinding('native_module').config);
2323

2424
diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js
25-
index 44271058a26dc05b693e07aad9a22037dd9a5d1f..7d08fb05e9a0abeb82d416891968b23002dc3685 100644
25+
index 0ef46569924354ea3ef59f3220637e30b316a761..7d08fb05e9a0abeb82d416891968b23002dc3685 100644
2626
--- a/lib/internal/modules/cjs/loader.js
2727
+++ b/lib/internal/modules/cjs/loader.js
2828
@@ -55,7 +55,7 @@ const assert = require('internal/assert');
@@ -34,14 +34,7 @@ index 44271058a26dc05b693e07aad9a22037dd9a5d1f..7d08fb05e9a0abeb82d416891968b230
3434
const packageJsonReader = require('internal/modules/package_json_reader');
3535
const { safeGetenv } = internalBinding('credentials');
3636
const {
37-
@@ -142,14 +142,12 @@ function enrichCJSError(err) {
38-
}
39-
40-
function stat(filename) {
41-
- // FIXME(codebytere): determine why this needs to be done and remove
42-
- const internalModuleStat = process.binding('fs').internalModuleStat;
43-
filename = path.toNamespacedPath(filename);
44-
if (statCache !== null) {
37+
@@ -147,7 +147,7 @@ function stat(filename) {
4538
const result = statCache.get(filename);
4639
if (result !== undefined) return result;
4740
}

0 commit comments

Comments
 (0)