Browse Source

Rename main.js to node.js.

v0.7.4-release
Ryan 16 years ago
parent
commit
3212b31ea1
  1. 2
      src/node.cc
  2. 0
      src/node.js
  3. 2
      wscript

2
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);

0
src/main.js → src/node.js

2
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"

Loading…
Cancel
Save