Neil Fraser

Results 25 comments of Neil Fraser

This looks really interesting. I'm currently occupied in a conversion project, but will tackle this as soon as that's complete.

Can't recreate. My steps: * Go to https://neil.fraser.name/software/JS-Interpreter/ * Replace code with: `alert(new Date(1234))` * Press Parse then press Run. Actual result: An alert with "Wed Dec 31 1969 16:00:01...

Got it. This bug was previously raised and fixed in #218. Looks like the js-interpreter package you are using needs to be updated. Not sure whom to ping regarding that.

Just to confirm, *I* have no interest in developing and maintaining an ES6+ version. It would be a step backwards for my projects in that the download times would increase....

Go ahead and submit a PR for this. I'm not a node user, so you'll do a better job of writing this than me.

Related, the bind polyfill from Mozilla is also unable to handle this: ``` new (Function.prototype.bind.apply(Date, [null, 100, 200, 300, 400])); ``` Which should equal: ``` new Date(100, 200, 300, 400)...

Not too concerned about the above issue. But this one has more functional impact: ```js function foo(a) { arguments[0] = 42; alert(a); } foo(7); ```

I don't understand how this differs from our existing try/catch/finally implementation. For instance, you add a stepCatchClause function at line 2644, overwriting the one already at line 2163. Does the...

The tests I use are the unit tests for other projects. If one can load the other project and run their own unit tests, then that exercises the interpreter pretty...

Q: What happens in the different languages when diffing "人" vs "中"? JavaScript should just say delete one character, insert another. But what about Python?