Skip to content

Commit

Permalink
Allow StackFrames to be constructed using an evalOrigin
Browse files Browse the repository at this point in the history
Users no longer need to supply evalOrigin separately.
  • Loading branch information
eriwen committed May 30, 2020
1 parent ab81a2e commit dcd928f
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 640 deletions.
3 changes: 2 additions & 1 deletion dist/stackframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
var numericProps = ['columnNumber', 'lineNumber'];
var stringProps = ['fileName', 'functionName', 'source'];
var arrayProps = ['args'];
var objectProps = ['evalOrigin'];

var props = booleanProps.concat(numericProps, stringProps, arrayProps);
var props = booleanProps.concat(numericProps, stringProps, arrayProps, objectProps);

function StackFrame(obj) {
if (!obj) return;
Expand Down
2 changes: 1 addition & 1 deletion dist/stackframe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/stackframe.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dcd928f

Please sign in to comment.