diff --git a/lib/common/asar.js b/lib/common/asar.js index 1b9a993a2e67a0..20385da135967d 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -590,11 +590,11 @@ return files } - const {internalModuleReadFile} = process.binding('fs') - process.binding('fs').internalModuleReadFile = function (p) { + const {internalModuleReadJSON} = process.binding('fs') + process.binding('fs').internalModuleReadJSON = function (p) { const [isAsar, asarPath, filePath] = splitPath(p) if (!isAsar) { - return internalModuleReadFile(p) + return internalModuleReadJSON(p) } const archive = getOrCreateArchive(asarPath) if (!archive) {