|
@@ -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) {
|