Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith committed Apr 29, 2020
1 parent 3c56e9c commit 0fa099e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions support/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,6 @@ isWeakSetToString.working = (
);
function isWeakSet(value) {
return isWeakSetToString(value);
if (typeof WeakSet === 'undefined') {
return false;
}

return isWeakSetToString.working
? isWeakSetToString(value)
: value instanceof WeakSet;
}
exports.isWeakSet = isWeakSet;

Expand Down

0 comments on commit 0fa099e

Please sign in to comment.