File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ var stackFrame = new StackFrame({
19
19
isEval: true ,
20
20
isNative: false ,
21
21
source: ' ORIGINAL_STACK_LINE'
22
+ evalOrigin: new StackFrame ({functionName: ' withinEval' , lineNumber: 2 , columnNumber: 43 })
22
23
});
23
24
24
25
stackFrame .functionName // => "funName"
@@ -49,9 +50,13 @@ stackFrame.isEval // => true
49
50
stackFrame .setIsEval (false )
50
51
stackFrame .getIsEval () // => false
51
52
52
- stackFrame .isNative // => false
53
+ stackFrame .isNative // => false
53
54
stackFrame .setIsNative (true )
54
- stackFrame .getIsNative () // => true
55
+ stackFrame .getIsNative () // => true
56
+
57
+ stackFrame .evalOrigin // => StackFrame({functionName: 'withinEval', lineNumber: ...})
58
+ stackFrame .setEvalOrigin ({functionName: ' evalFn' , fileName: ' anonymous' })
59
+ stackFrame .getEvalOrigin ().getFunctionName () // => 'evalFn'
55
60
56
61
stackFrame .toString () // => 'funName(args)@http://localhost:3000/file.js:325:20'
57
62
```
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ declare namespace StackFrame {
19
19
functionName ?: string ;
20
20
source ?: string ;
21
21
args ?: any [ ] ;
22
+ evalOrigin ?: StackFrame ;
22
23
}
23
24
}
24
25
You can’t perform that action at this time.
0 commit comments