Skip to content

Commit 76f26f6

Browse files
author
Brian Vaughn
committed
Backed out conditional symbol export because it was breaking tests
1 parent c3daacc commit 76f26f6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/shared/ReactSymbols.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* @flow
88
*/
99

10-
import {enableDebugTracing} from './ReactFeatureFlags';
11-
1210
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1311
// nor polyfill, then a plain number is used for performance.
1412
export let REACT_ELEMENT_TYPE = 0xeac7;
@@ -29,10 +27,7 @@ export let REACT_FUNDAMENTAL_TYPE = 0xead5;
2927
export let REACT_RESPONDER_TYPE = 0xead6;
3028
export let REACT_SCOPE_TYPE = 0xead7;
3129
export let REACT_OPAQUE_ID_TYPE = 0xeae0;
32-
export let REACT_DEBUG_TRACING_MODE_TYPE;
33-
if (enableDebugTracing) {
34-
REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
35-
}
30+
export let REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
3631

3732
if (typeof Symbol === 'function' && Symbol.for) {
3833
const symbolFor = Symbol.for;
@@ -54,9 +49,7 @@ if (typeof Symbol === 'function' && Symbol.for) {
5449
REACT_RESPONDER_TYPE = symbolFor('react.responder');
5550
REACT_SCOPE_TYPE = symbolFor('react.scope');
5651
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
57-
if (enableDebugTracing) {
58-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
59-
}
52+
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
6053
}
6154

6255
const MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;

0 commit comments

Comments
 (0)