Closed whenmoon closed 4 years ago
I am also getting this same issue
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); } } }
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.