File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1124,10 +1124,14 @@ function payloadFileSync (pointer) {
1124
1124
var path = revertMakingLong ( long ) ;
1125
1125
1126
1126
if ( ! insideSnapshot ( path ) ) {
1127
- return process . binding ( 'fs' ) . internalModuleReadFile ( long ) ;
1127
+ return process . binding ( 'fs' ) . internalModuleReadJSON
1128
+ ? process . binding ( 'fs' ) . internalModuleReadJSON ( long )
1129
+ : process . binding ( 'fs' ) . internalModuleReadFile ( long ) ;
1128
1130
}
1129
1131
if ( insideMountpoint ( path ) ) {
1130
- return process . binding ( 'fs' ) . internalModuleReadFile ( makeLong ( translate ( path ) ) ) ;
1132
+ return process . binding ( 'fs' ) . internalModuleReadJSON
1133
+ ? process . binding ( 'fs' ) . internalModuleReadJSON ( makeLong ( translate ( path ) ) )
1134
+ : process . binding ( 'fs' ) . internalModuleReadFile ( makeLong ( translate ( path ) ) ) ;
1131
1135
}
1132
1136
1133
1137
path = normalizePath ( path ) ;
You can’t perform that action at this time.
0 commit comments