2019-07-16 17:23:04 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
2019-08-22 21:12:11 +00:00
|
|
|
Date: Wed, 21 Aug 2019 11:06:16 -0700
|
2019-07-16 17:23:04 +00:00
|
|
|
Subject: FIXME: use redefined version of internalModuleStat
|
|
|
|
|
|
|
|
Instantiate redefined version of the internalModuleStat function
|
|
|
|
(see lib/common/asar.js in the electron/electron repo). For some reason
|
2019-08-22 21:12:11 +00:00
|
|
|
this has to be done after the upgrade to the Node.js v8.7.0. in the very beginning of the file holds a reference
|
2019-07-16 17:23:04 +00:00
|
|
|
to a native Node.js implementation of the function.
|
|
|
|
|
|
|
|
diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js
|
2019-08-22 21:12:11 +00:00
|
|
|
index 437546e38ad30c518dce45f2f9ab104bdffbbe38..adb6dffa8f89035078c6e5b8a975c4874a5b0eb8 100644
|
2019-07-16 17:23:04 +00:00
|
|
|
--- a/lib/internal/modules/cjs/loader.js
|
|
|
|
+++ b/lib/internal/modules/cjs/loader.js
|
2019-08-22 21:12:11 +00:00
|
|
|
@@ -117,6 +117,8 @@ function enrichCJSError(err) {
|
|
|
|
}
|
|
|
|
|
2019-07-16 17:23:04 +00:00
|
|
|
function stat(filename) {
|
|
|
|
+ // FIXME(codebytere): determine why this needs to be done and remove
|
|
|
|
+ const internalModuleStat = process.binding('fs').internalModuleStat;
|
|
|
|
filename = path.toNamespacedPath(filename);
|
|
|
|
if (statCache !== null) {
|
|
|
|
const result = statCache.get(filename);
|