stacktrace.js
function StackTrace$$generateArtificially(opts) {
            opts = _merge(_options, opts);
            var stackFrames = StackGenerator.backtrace(opts);
            if (typeof opts.filter === 'function') {
                stackFrames = stackFrames.filter(opts.filter);
            }
            return Promise.resolve(stackFrames);
        }
function StackTrace$$generateArtificially(opts) {
            opts = _merge(_options, opts);
            var stackFrames = StackGenerator.backtrace(opts);
            if (typeof opts.filter === 'function') {
                stackFrames = stackFrames.filter(opts.filter);
            }
            return Promise.resolve(stackFrames);
        }
function StackTrace$$generateArtificially ( opts ) { opts = _merge ( _options , opts ) ; var stackFrames = StackGenerator . backtrace ( opts ) ; if ( typeof opts . filter === 'function' ) { stackFrames = stackFrames . filter ( opts . filter ) ; } return Promise . resolve ( stackFrames ) ; }
Use StackGenerator to generate a backtrace.

@param {Object} opts
@returns {Promise} of Array[StackFrame]
Use StackGenerator to generate a backtrace .