summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
authorJohn-David Dalton <john.david.dalton@gmail.com>2017-11-16 13:12:04 -0800
committerRich Trott <rtrott@gmail.com>2017-11-28 16:21:53 -0500
commitfea1e05ba5588eeedc670c5bcfff9a362874deed (patch)
treef77af347ce2babe5d3ab6669c459802583b66d8d /src/node_file.cc
parentecbae568b7818ef056fc3fe9cc6e5502fb9c9269 (diff)
downloadandroid-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.tar.gz
android-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.tar.bz2
android-node-v8-fea1e05ba5588eeedc670c5bcfff9a362874deed.zip
module: rename internalModuleReadFile to internalModuleReadJSON
PR-URL: https://github.com/nodejs/node/pull/17084 Fixes: https://github.com/nodejs/node/issues/17076 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 2b3b007976..c178ec9ac1 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -518,7 +518,7 @@ void FillStatsArray(double* fields, const uv_stat_t* s) {
// a string or undefined when the file cannot be opened. Returns an empty
// string when the file does not contain the substring '"main"' because that
// is the property we care about.
-static void InternalModuleReadFile(const FunctionCallbackInfo<Value>& args) {
+static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
uv_loop_t* loop = env->event_loop();
@@ -1478,7 +1478,7 @@ void InitFs(Local<Object> target,
env->SetMethod(target, "rmdir", RMDir);
env->SetMethod(target, "mkdir", MKDir);
env->SetMethod(target, "readdir", ReadDir);
- env->SetMethod(target, "internalModuleReadFile", InternalModuleReadFile);
+ env->SetMethod(target, "internalModuleReadJSON", InternalModuleReadJSON);
env->SetMethod(target, "internalModuleStat", InternalModuleStat);
env->SetMethod(target, "stat", Stat);
env->SetMethod(target, "lstat", LStat);