Permalink
Browse files

command: -i now implies -b (as otherwise all state disappears into th…

…e closure void)
  • Loading branch information...
dsc committed Jul 3, 2012
1 parent 3d9c52e commit 616abb922f61be0a46aee315becfce23c95c669d
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/command.js
  2. +1 −1 src/command.co
View
@@ -344,7 +344,7 @@ function repl(){
} else {
_ = vm.runInThisContext(Coco.compile(code, {
'eval': 'eval',
- bare: o.bare
+ bare: true
}), 'repl');
_ != null && (global._ = _);
pp(_);
View
@@ -233,7 +233,7 @@ default
if o.compile
say Coco.compile code, {o.bare}
else
- _ = vm.runInThisContext Coco.compile(code, {\eval o.bare}), \repl
+ _ = vm.runInThisContext Coco.compile(code, {\eval, +bare}), \repl
_ !? global <<< {_}
pp _
say _ if typeof _ is \function

0 comments on commit 616abb9

Please sign in to comment.