Joined December 2012
·

JP Camara

JP Camara
·
Providence, RI
·
·
·

I think you hit an issue displaying your regex. Coderwall interpreted part of your regex as a code snippet and removed an important piece!

Posted to Backbone.js: Better error visibility over 1 year ago

Indeed, interesting idea.

Couple cautions with this approach:

1) Performance concerns. http://flippinawesome.org/2013/09/30/rethinking-javascripts-trycatch/. Just the presence of a try/catch block in a section of javascript code can have performance implications (meaning even if no exception is thrown)

2) In IE8 + 9, "console" is only available when you have developer tools open. If an error occurs and you haven't opened dev tools, you'll get an error trying to use it. Mostly I'm saying this in reference to your comment "Supported in IE8 and every other browser"

Achievements
137 Karma
107,223 Total ProTip Views