Sha256: df178ba15088cbbff963e6cc1399bc95177812f5e0abb5d068c204382fe5a7fa

Contents?: true

Size: 353 Bytes

Versions: 53

Compression:

Stored size: 353 Bytes

Contents

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

Version data entries

53 entries across 47 versions & 12 rubygems

Version Path
sprockets-commoner-0.6.5 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/browser-resolve/node_modules/resolve/lib/caller.js
locomotivecms-3.4.0 app/javascript/node_modules/browser-resolve/node_modules/resolve/lib/caller.js
sprockets-commoner-0.6.4 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
lanes-0.8.0 node_modules/browser-resolve/node_modules/resolve/lib/caller.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/resolve/lib/caller.js
sprockets-commoner-0.6.3 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
sprockets-commoner-0.6.2 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
sprockets-commoner-0.6.1 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
minimum_viable_product-0.0.11 test/dummy/node_modules/resolve/lib/caller.js
sprockets-commoner-0.6.0 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
brwy_rails-0.0.6 test/dummy/node_modules/resolve/lib/caller.js
brwy_rails-0.0.5 test/dummy/node_modules/resolve/lib/caller.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/resolve/lib/caller.js
sprockets-commoner-0.5.1 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
sprockets-commoner-0.5.0 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
sprockets-commoner-0.4.0 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
blackboard-3.1.9 lib/site_template/node_modules/resolve/lib/caller.js
sprockets-commoner-0.3.0 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js
sprockets-commoner-0.2.8 js/babel-plugin-sprockets-commoner-internal/node_modules/resolve/lib/caller.js