tc39 / eshost

A uniform wrapper around a multitude of ECMAScript hosts. CLI: https://github.com/bterlson/eshost-cli
Other
141 stars 37 forks source link

eshost thinks it's an error if JSC prints "x: y" #106

Open rkirsling opened 4 years ago

rkirsling commented 4 years ago

Without exactly one space:

λ eshost -se "'x:y'"
#### ch, jsc, sm, v8, xs
x:y

λ eshost -se "'x:  y'"
#### ch, jsc, sm, v8, xs
x:  y

With exactly one space:

λ eshost -se "'x: y'"
#### ch, sm, v8, xs
x: y

#### jsc

y: undefined

The problem appears to be here, but I don't know what the appropriate solution is: https://github.com/bterlson/eshost/blob/master/lib/agents/jsc.js#L9