mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
update
This commit is contained in:
10
node_modules/callsite/index.js
generated
vendored
Normal file
10
node_modules/callsite/index.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
module.exports = function(){
|
||||
var orig = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = function(_, stack){ return stack; };
|
||||
var err = new Error;
|
||||
Error.captureStackTrace(err, arguments.callee);
|
||||
var stack = err.stack;
|
||||
Error.prepareStackTrace = orig;
|
||||
return stack;
|
||||
};
|
Reference in New Issue
Block a user