This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Module refactor - almost CommonJS compatible now

API change summary:

  * require("/sys.js") becomes require("sys")

  * require("circle.js") becomes require("./circle")

  * process.path.join() becomes require("path").join()
  • Loading branch information...
ry committed Oct 31, 2009
1 parent 36f3bc3 commit 7a2e784ad7386771d15249d446c914fba1675068
Showing with 473 additions and 387 deletions.
  1. +2 −2 bin/node-repl
  2. +90 −73 doc/api.txt
  3. +5 −5 doc/index.html
  4. +1 −1 lib/file.js
  5. +1 −1 lib/http.js
  6. +1 −1 lib/repl.js
  7. +0 −5 src/file.js
  8. +277 −162 src/node.js
  9. +0 −53 src/util.js
  10. +11 −7 test/mjsunit/common.js
  11. +1 −1 test/mjsunit/fixtures/a.js
  12. +7 −1 test/mjsunit/fixtures/b/c.js
  13. +2 −0 test/mjsunit/fixtures/b/package/index.js
  14. +4 −4 test/mjsunit/test-buffered-file.js
  15. +2 −2 test/mjsunit/test-delayed-require.js
  16. +1 −1 test/mjsunit/test-event-emitter-add-listeners.js
  17. +1 −1 test/mjsunit/test-exec.js
  18. +2 −2 test/mjsunit/test-file-cat-noexist.js
  19. +4 −4 test/mjsunit/test-fs-sendfile.js
  20. +1 −1 test/mjsunit/test-fs-stat.js
  21. +5 −5 test/mjsunit/test-fs-write.js
  22. +2 −2 test/mjsunit/test-http-cat.js
  23. +2 −2 test/mjsunit/test-http-client-race.js
  24. +2 −2 test/mjsunit/test-http-client-upload.js
  25. +3 −3 test/mjsunit/test-http-malformed-request.js
  26. +2 −2 test/mjsunit/test-http-proxy.js
  27. +3 −3 test/mjsunit/test-http-server.js
  28. +2 −2 test/mjsunit/test-http.js
  29. +4 −4 test/mjsunit/test-mkdir-rmdir.js
  30. +4 −4 test/mjsunit/test-module-loading.js
  31. +4 −4 test/mjsunit/test-multipart.js
  32. +1 −1 test/mjsunit/test-process-buffering.js
  33. +1 −1 test/mjsunit/test-process-kill.js
  34. +1 −1 test/mjsunit/test-process-simple.js
  35. +1 −1 test/mjsunit/test-process-spawn-loop.js
  36. +1 −1 test/mjsunit/test-promise-timeout.js
  37. +1 −1 test/mjsunit/test-promise-wait.js
  38. +1 −1 test/mjsunit/test-readdir.js
  39. +1 −1 test/mjsunit/test-signal-handler.js
  40. +2 −2 test/mjsunit/test-tcp-binary.js
  41. +2 −2 test/mjsunit/test-tcp-many-clients.js
  42. +2 −2 test/mjsunit/test-tcp-pingpong-delay.js
  43. +2 −2 test/mjsunit/test-tcp-pingpong.js
  44. +2 −2 test/mjsunit/test-tcp-reconnect.js
  45. +2 −2 test/mjsunit/test-tcp-throttle-kernel-buffer.js
  46. +2 −2 test/mjsunit/test-tcp-throttle.js
  47. +2 −2 test/mjsunit/test-tcp-timeout.js
  48. +1 −1 test/mjsunit/test-timers.js
  49. +1 −1 test/mjsunit/test-utf8-scripts.js
  50. +1 −1 test/mjsunit/test-wait-ordering.js
View
@@ -1,11 +1,11 @@
#!/usr/bin/env node
-process.mixin(require("/utils.js"));
+process.mixin(require('sys'));
puts("Welcome to the Node.js REPL.");
puts("Enter ECMAScript at the prompt.");
puts("Tip 1: Use 'rlwrap node-repl' for a better interface");
puts("Tip 2: Type Control-D to exit.");
-require("/repl.js").start();
+require('repl').start();
// vim:ft=javascript
Oops, something went wrong.

0 comments on commit 7a2e784

Please sign in to comment.