source: frontend/node_modules/resolve/lib/caller.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 409 bytes
Line 
1'use strict';
2
3var $Error = require('es-errors');
4
5module.exports = function () {
6 // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
7 var origPrepareStackTrace = $Error.prepareStackTrace;
8 $Error.prepareStackTrace = function (_, stack) { return stack; };
9 var stack = (new $Error()).stack;
10 $Error.prepareStackTrace = origPrepareStackTrace;
11 return stack[2].getFileName();
12};
Note: See TracBrowser for help on using the repository browser.