remy / jsconsole

Web based console - for presentations and workshops
http://jsconsole.com
MIT License
1.91k stars 334 forks source link

Declaring multiple variables throws TypeError #116

Closed Hailiax closed 6 years ago

Hailiax commented 6 years ago

For example, evaluating statement var x, y; will throw TypeError{ e.declarations.peekLast is not a function }

Tested on jsconsole.com in modern Safari, Chrome, Opera, Firefox.

remy commented 6 years ago

Confirmed. (sorry it took a while to reply, I was pretty sure this would be the case, but hadn't had the chance to sit down to try it).

The error is in here somewhere: https://github.com/remy/jsconsole/blob/master/src/node_modules/lib/run.js#L114-L240 I've been getting better at my transforms, so I might be able to find the answer next week.

Hailiax commented 6 years ago

Thank you! JSconsole has been really helpful.