| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8426077 commit 112ec73
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,8 +98,11 @@ function isEqualBoxedPrimitive(val1, val2) { | |||
| 98 | 98 | return isBigIntObject(val2) && | |
| 99 | 99 | BigIntPrototype.valueOf(val1) === BigIntPrototype.valueOf(val2); | |
| 100 | 100 | } | |
| 101 | - return isSymbolObject(val2) && | ||
| 102 | - SymbolPrototype.valueOf(val1) === SymbolPrototype.valueOf(val2); | ||
| 101 | + if (isSymbolObject(val1)) { | ||
| 102 | + return isSymbolObject(val2) && | ||
| 103 | + SymbolPrototype.valueOf(val1) === SymbolPrototype.valueOf(val2); | ||
| 104 | + } | ||
| 105 | + return false; | ||
| 103 | 106 | } | |
| 104 | 107 | ||
| 105 | 108 | // Notes: Type tags are historical [[Class]] properties that can be set by | |
| Back | FazBrowse Home | New Git URL |
0 commit comments