Update Narwhal to get readline package, modify objj.js to use readline().

This commit is contained in:
Tom Robinson committed 2009-08-09 20:11:19 -07:00
1 parent 64cbf98140
commit 654b0493bb
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -1,4 +1,6 @@
var File = require("file");
var File = require("file"),
readline = require("readline").readline;
var window = require("browser/window");
// variables to be exported from the module, for use in objjc, etc
@@ -67,7 +69,7 @@ exports.run = function(args)
try {
system.stdout.write("objj> ").flush();
var input = system.stdin.readLine(),
var input = readline(),
result = objj_eval(input);
if (result !== undefined)