wycats/handlebars.js — pull request #326 by quarterto (2012-10-03 15:26:57+00:00)
Title: fix error inheritance and capture the stack trace in V8

Handlebars' exceptions all think they come from utils.js, line 13, 'cause that's where the call to ```new Error``` is. that's not good.

this patch cribs from Coco/LiveScript's class inheritance so as we don't bork the ```constructor``` property, then calls V8's Error.captureStackTrace just in case.