Skip to content

Commit

Permalink
Simplify null/undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Oct 29, 2019
1 parent e5aff39 commit 27ca2df
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 || state.nextPosition === undefined) {
if (state.nextPosition == null) {
return originalFunctionName();
}
return state.nextPosition.name || originalFunctionName();
Expand Down

0 comments on commit 27ca2df

Please sign in to comment.