lib/johnson/js/prelude.js in johnson-2.0.0.pre2 vs lib/johnson/js/prelude.js in johnson-2.0.0.pre3

- old
+ new

@@ -155,10 +155,13 @@ } }) Johnson.getStack = function() { try { throw new Error; } catch(e) { - return e.stack.replace(/(.*\n){3}/, ''); + return e.stack. + replace(/^Error\(\)@:0\n/,""). + replace(/^\(\)@[^\n]*prelude\.js[^\n]*\n/,""). + replace(/^@:0\n/,""); } }; null; // no need to marshal a result