From c54c21e2b420a030e3d8159ac7a18bf6e32ee7eb Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 24 Oct 2025 14:16:07 -0700 Subject: [PATCH] test: fix warnings when StrictDict values are checked with propTypes (#2565) --- src/editors/utils/StrictDict.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editors/utils/StrictDict.ts b/src/editors/utils/StrictDict.ts index c7b69c161..b15dcb51d 100644 --- a/src/editors/utils/StrictDict.ts +++ b/src/editors/utils/StrictDict.ts @@ -4,7 +4,9 @@ const strictGet = (target, name) => { return target; } - if (name in target || name === '_reactFragment') { + // '@@toStringTag' is used by propTypes in its internal `isSymbol()` function. + // We can probably remove this exception once we get rid of propTypes. + if (name in target || name === '_reactFragment' || name === '@@toStringTag') { return target[name]; }