Skip to content

Comment on SCRIPT-8: An 8 Bit Fantasy Computer Programmed with Javascriptparent

Comments

This looks fun! Would be great to have something that catches runtime errors and highlights them in the source code. Then, of course, code completion etc to make it easy to find stuff.

I started working on a bit similar project some years ago (I unfortunately abandonded it...) but I got one thing right: the ability to highlight the erroneous line. See http://write-a-game.herokuapp.com/ and try to call a non-existent function.

Here's the stack trace parser used. It tries to extract the line number and error message from an Error object. Sorry for the coffeescript!

https://github.com/raimohanska/write-a-game/blob/8d2111e2372...

Good idea. This would be useful for sure.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.