Skip to content

Commit 7a2e784

Browse files
committed
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()
1 parent 36f3bc3 commit 7a2e784

50 files changed

Lines changed: 473 additions & 387 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bin/node-repl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env node
22

3-
process.mixin(require("/utils.js"));
3+
process.mixin(require('sys'));
44
puts("Welcome to the Node.js REPL.");
55
puts("Enter ECMAScript at the prompt.");
66
puts("Tip 1: Use 'rlwrap node-repl' for a better interface");
77
puts("Tip 2: Type Control-D to exit.");
88

9-
require("/repl.js").start();
9+
require('repl').start();
1010

1111
// vim:ft=javascript

0 commit comments

Comments
 (0)