danielgtaylor / nesh

An enhanced, extensible interactive shell for Node.js and CoffeeScript
http://danielgtaylor.github.io/nesh/
MIT License
288 stars 27 forks source link

multi line for babel ? #46

Open c0b opened 8 years ago

c0b commented 8 years ago
➸ nesh -b
Babel 5.8.38 on Node v6.0.0
Type .help for more information
babel> var a = [
SyntaxError: unknown: Unexpected token (2:0)
var a = [

without babel it's ok to write multi lines

nesh> var a = [
...   {a: 'a', b: 4},
...   {a: 'c', b: 5}, ]
undefined
nesh> a
[ { a: 'a', b: 4 }, { a: 'c', b: 5 } ]