Initial pass

This commit is contained in:
Danny McCormick committed 2019-06-26 21:12:00 -04:00
commit 39c08a0eaa
7242 files changed
+1886006

No files matched your search

+8
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();
};