Skip to content

JS Object representation of a stack frame.

License

Notifications You must be signed in to change notification settings

dingnan/stackframe

Repository files navigation

stackframe - JS Object representation of a stack frame.

Build StatusCoverage StatusCode Climate

Underlies functionality of other modules within stacktrace.js.

Written to closely resemble StackFrame representations in Gecko and V8

Usage

// Create StackFrame and set propertiesvarstackFrame=newStackFrame('funName',['args'],'http://localhost:3000/file.js',1,3288);stackFrame.functionName// => "funName"stackFrame.setFunctionName('newName')stackFrame.getFunctionName()// => "newName"stackFrame.args// => ["args"]stackFrame.setArgs([])stackFrame.getArgs()// => []stackFrame.fileName// => 'http://localhost:3000/file.min.js'stackFrame.setFileName('http://localhost:3000/file.js')stackFrame.getFileName()// => 'http://localhost:3000/file.js'stackFrame.lineNumber// => 1stackFrame.setLineNumber(325)stackFrame.getLineNumber()// => 325stackFrame.columnNumber// => 3288stackFrame.setColumnNumber(20)stackFrame.getColumnNumber()// => 20stackFrame.toString()// => 'funName(args)@http://localhost:3000/file.js:325:20'

Installation

npm install stackframe bower install stackframe https://raw.githubusercontent.com/stacktracejs/stackframe/master/dist/stackframe.min.js 

About

JS Object representation of a stack frame.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript93.6%
  • Makefile6.4%