ember-introjs
Version:
An Ember Component for intro.js
23 lines (19 loc) • 527 B
JavaScript
const sourceMapSupport = require('source-map-support');
function prepareStackTrace(error, stack) {
return error + stack.map(function(frame) {
return '\n at ' + sourceMapSupport.wrapCallSite(frame);
}).join('');
}
function install(errorClass) {
if (errorClass) {
errorClass.prepareStackTrace = prepareStackTrace;
errorClass.stackTraceLimit = Infinity;
sourceMapSupport.install({
environment: 'node',
handleUncaughtExceptions: false,
});
}
}
module.exports = {
install: install
};