Skip to content

Instantly share code, notes, and snippets.

@saikat
Created August 1, 2010 18:45
Show Gist options
  • Save saikat/503625 to your computer and use it in GitHub Desktop.
Save saikat/503625 to your computer and use it in GitHub Desktop.
function TheErrorator(value) {
JSON.parse(JSON.stringify(value));
};
module.exports = {
'throw exception' : function(assert) {
TheErrorator();
}
}
/* Output:
aiur:ExpressoBug saikat$ expresso bug.js
/usr/local/bin/expresso:648
stack = err.stack.replace(err.name, ''),
^
TypeError: Cannot call method 'replace' of undefined
at error (/usr/local/bin/expresso:648:27)
at next (/usr/local/bin/expresso:684:21)
at runSuite (/usr/local/bin/expresso:689:6)
at check (/usr/local/bin/expresso:586:16)
at runFile (/usr/local/bin/expresso:590:10)
at Array.forEach (native)
at runFiles (/usr/local/bin/expresso:569:11)
at run (/usr/local/bin/expresso:545:5)
at Object.<anonymous> (/usr/local/bin/expresso:759:13)
at Module._compile (module:384:23)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment