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 this has to be done after the upgrade to the Node.js v8.7.0. `const internalModuleStat` in the very beginning of the file holds a reference to a native Node.js implementation of the function.
This commit is contained in:
Родитель
b2a01141fd
Коммит
d191ff485e
|
@ -81,6 +81,8 @@ const {
|
|||
} = require('internal/constants');
|
||||
|
||||
function stat(filename) {
|
||||
// FIXME(codebytere): determine why this needs to be done and remove
|
||||
const internalModuleStat = process.binding('fs').internalModuleStat;
|
||||
filename = path.toNamespacedPath(filename);
|
||||
const cache = stat.cache;
|
||||
if (cache !== null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче