Skip to content

Commit

Permalink
Fix #260 - name of undefined (line 379)
Browse files Browse the repository at this point in the history
  • Loading branch information
6utt3rfly committed Oct 29, 2019
1 parent e2fcc4c commit e5aff39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function wrapCallSite(frame, state) {
frame = cloneCallSite(frame);
var originalFunctionName = frame.getFunctionName;
frame.getFunctionName = function() {
if (state.nextPosition === null) {
if (state.nextPosition === null || state.nextPosition === undefined) {
return originalFunctionName();
}
return state.nextPosition.name || originalFunctionName();
Expand Down

0 comments on commit e5aff39

Please sign in to comment.