With the addition of PR #15767 the internal InternalModuleReadFile and pseudo exposed process.binding("fs").internalModuleReadFile are no longer generic read file helpers and are essentially locked down to just json. InternalModuleReadFile was more generically useful before and could have been applied to loading more than just json.
I think the name InternalModuleReadFile, and the pseudo exposed process.binding("fs").internalModuleReadFile, should either be renamed or a new internal for json-only should be created (maybe that wraps InternalModuleReadFile).
With the addition of PR #15767 the internal
InternalModuleReadFileand pseudo exposedprocess.binding("fs").internalModuleReadFileare no longer generic read file helpers and are essentially locked down to justjson.InternalModuleReadFilewas more generically useful before and could have been applied to loading more than justjson.I think the name
InternalModuleReadFile, and the pseudo exposedprocess.binding("fs").internalModuleReadFile, should either be renamed or a new internal forjson-only should be created (maybe that wrapsInternalModuleReadFile).