let ctx = vm.createContext()
let value = vm.runInContext("{a:true,b:false}",ctx)
> let ctx = vm.createContext()
undefined
> let value = vm.runInContext("{a:true,b:false}",ctx)
evalmachine.<anonymous>:1
{a:true,b:false}
^
SyntaxError: Unexpected token :
>
Version: v7.7.1
Platform: Linux kaka 4.4.0-62-generic Improving code readability on lib/_http_agent.js #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: vm