stack-generator

Generate artificial backtrace by walking arguments.callee.caller chain

MIT 20 个版本
安装
npm install stack-generator
yarn add stack-generator
pnpm add stack-generator
bun add stack-generator
README

stack-generator

Build Status Coverage Status GitHub license dependencies module format code of conduct

Generate artificial stacktrace by walking arguments.callee.caller chain. Works everywhere except strict-mode.

Usage

StackGenerator.backtrace()

=> [StackFrame({functionName: 'foo', args: []}), StackFrame(..), StackFrame(..)]

Installation

npm install stack-generator
bower install stack-generator
https://raw.githubusercontent.com/stacktracejs/stack-generator/master/dist/stack-generator.min.js

Browser Support

Sauce Test Status

Contributing

Want to be listed as a Contributor? Start with the Contributing Guide!

版本列表
2.0.10 2022-06-06
2.0.9 2022-06-06
2.0.8 2022-06-06
2.0.7 2022-06-06
2.0.6 2022-06-05
2.0.5 2020-01-06
2.0.4 2019-09-18
2.0.3 2018-05-31
2.0.2 2017-08-13
2.0.1 2017-04-30
2.0.0 2016-11-25
1.1.0 2016-01-02
1.0.7 2015-09-27
1.0.6 2015-09-21
1.0.5 2015-08-11
1.0.3 2015-01-19
1.0.2 2014-11-29
1.0.1 2014-11-17
1.0.0 2014-11-02
0.1.0 2014-10-08