diff --git a/src/node.cc b/src/node.cc index 7bcdc1bc46e..061930f404d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -287,7 +287,7 @@ main (int argc, char *argv[]) ExecuteString(String::New(native_file), String::New("file.js")); if (try_catch.HasCaught()) goto native_js_error; - ExecuteString(String::New(native_main), String::New("main.js")); + ExecuteString(String::New(native_node), String::New("node.js")); if (try_catch.HasCaught()) goto native_js_error; ev_loop(EV_DEFAULT_UC_ 0); diff --git a/src/main.js b/src/node.js similarity index 100% rename from src/main.js rename to src/node.js diff --git a/wscript b/wscript index 31f5222d44b..8a4975a4732 100644 --- a/wscript +++ b/wscript @@ -139,7 +139,7 @@ def build(bld): js2c.JS2C(source, targets) native_cc = bld.new_task_gen( - source="src/http.js src/file.js src/main.js", + source="src/http.js src/file.js src/node.js", target="src/natives.h", rule=javascript_in_c, before="cxx"