<!-- Thank you for reporting an issue. This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help Please fill in as much of the template below as you're able. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> * **Version**: v7.7.1 * **Platform**: Linux kaka 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux * **Subsystem**: vm <!-- Enter your issue details below this comment. --> ```javascript let ctx = vm.createContext() let value = vm.runInContext("{a:true,b:false}",ctx) ``` ```bash > 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