Skip to content

Commit 292b642

Browse files
committed
Add globalThis in compiler runtime
1 parent 91bcd58 commit 292b642

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/packages/react-compiler-runtime/src

compiler/packages/react-compiler-runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const ReactSecretInternals =
1616

1717
type MemoCache = Array<number | typeof $empty>;
1818

19-
const $empty = Symbol.for('react.memo_cache_sentinel');
19+
const $empty = globalThis.Symbol.for('react.memo_cache_sentinel');
2020

2121
// Re-export React.c if present, otherwise fallback to the userspace polyfill for versions of React
2222
// < 19.

0 commit comments

Comments
 (0)