mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-21 14:09:22 +00:00
Update Narwhal to get readline package, modify objj.js to use readline().
This commit is contained in:
1 parent
64cbf98140
commit
654b0493bb
2 files changed
+5
-3
No files matched your search
Vendored
+1
-1
Submodule External/narwhal updated: 6ce4d92887...c8601619a8.
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user