Does not recognise console.log()
Closed this issue · 3 comments
whenmoon commented
TomWestrope commented
I am also getting this same issue
hvquy001 commented
Go to Packages / Atom Js Console -> View Code -> Open lib/Editor.js find sandbox
variable and replace by that:
const sandbox = { window, ...window, console: { log: function(str){ stdout.push(str); } } }
jrvieira commented
It's an environmental API, not part of JS itself. You can be working within an environment that doesn't implement it. Even if we assume the environment, its return value should be undefined.