Skip to content

Commit a5a4b6a

Browse files
test: fix warnings when StrictDict values are checked with propTypes
1 parent 106f22b commit a5a4b6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/editors/utils/StrictDict.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const strictGet = (target, name) => {
44
return target;
55
}
66

7-
if (name in target || name === '_reactFragment') {
7+
// '@@toStringTag' is used by propTypes in its internal `isSymbol()` function.
8+
// We can probably remove this exception once we get rid of propTypes.
9+
if (name in target || name === '_reactFragment' || name === '@@toStringTag') {
810
return target[name];
911
}
1012

0 commit comments

Comments
 (0)