aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-09-07 22:53:09 +0300
committermax99x <max99x@gmail.com>2011-09-07 22:53:09 +0300
commitc1ec46464e1ada07be1a8c8118138c3d22ad2a95 (patch)
tree8ade0c8e365610f8b2d8377e3227f71ddd5baf50
parent44e2e9a57db053fb8a0bc0b4f62965d39fbb526c (diff)
Canceling a window.prompt() for the default stdin handler no longer results in an EOF.
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index f4829344..683a2288 100644
--- a/src/library.js
+++ b/src/library.js
@@ -316,7 +316,7 @@ LibraryManager.library = {
// Command line.
result = readline();
}
- if (!result) return null;
+ if (!result) result = '';
input.cache = intArrayFromString(result + '\n', true);
}
return input.cache.shift();