Created
July 15, 2010 12:03
-
-
Save bga/476858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($G) | |
{ | |
var _wrap = function(Class) | |
{ | |
var _toString = Class.prototype.toString; | |
Class.prototype.toString = function() | |
{ | |
console.error('stack trace\n' + (this.stack || '/* no stack trace */')); | |
return _toString.call(this); | |
}; | |
}; | |
_wrap($G.Error); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment