Hi Chris, This was a bit of a pain to find, but the Light Table team didn't explicitly remove `window.prompt` support – it's just a side effect of us migrating from using node-webkit (now NW.js) to Atom shell (now Electron). The changes for that migration were first relased with version 0.8.0 (including the 0.8.0 alpha release).
See this comment made by myself <https://github.com/LightTable/LightTable/issues/586#issuecomment-150839373> for an issue someone reported with the socket.io JavaScript library – Electron doesn't support `prompt` <https://github.com/electron/electron/blob/30ec7fdeed715f4a8e234bb2557497081f8d1171/atom/renderer/lib/override.coffee>. The original link in my comment is broken now but I'm pretty sure Electron still doesn't support it. I'm not really familiar with the JavaScript plugin but I think we're just use the Node.js that Electron provides to evaluate JavaScript. I don't think there's a way to eval JavaScript according to an older version of the standard. On Sunday, September 4, 2016 at 12:13:28 PM UTC-4, Chris Bourke wrote: > > > Maybe I'm not seeing it, but I can't find exactly where or why > window.prompt support was removed (in light table 0.8.0 alpha and beyond > apparently). I teach a course on JavaScript and have students use this as > an early method for input. Versions 0.7.2 and prior supported this, but it > no longer works. What was the justification? I tried several methods to > restore it, but I've been unable to. Does anyone have any ideas on how to > go about doing it? > > On a similar note, I've got modules that rely on older lighttable > versions' support of earlier ECMAScript standards (so they can add their > own polyfill). Is it possible to set the script conformance version? > -- You received this message because you are subscribed to the Google Groups "Light Table Discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
