This commit is contained in:
Domen Kožar
2019-11-13 17:14:48 +01:00
parent d1407282e6
commit 08403cd828
6774 changed files with 1602535 additions and 1 deletions

8
node_modules/resolve/lib/caller.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
module.exports = function () {
// see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
var origPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = function (_, stack) { return stack; };
var stack = (new Error()).stack;
Error.prepareStackTrace = origPrepareStackTrace;
return stack[2].getFileName();
};