Skip to content

Don't break on top-level non-numeric object keys#1334

Merged
chenglou merged 1 commit intofacebook:masterfrom
sophiebits:non-numeric-top-level
Mar 30, 2014
Merged

Don't break on top-level non-numeric object keys#1334
chenglou merged 1 commit intofacebook:masterfrom
sophiebits:non-numeric-top-level

Conversation

@sophiebits
Copy link
Collaborator

Previously, this threw (in __DEV__ only) in ReactCurrentOwner.current.constructor.displayName because ReactCurrentOwner.current is null:

React.renderComponent(<div>{{1: <div />, 2: <div />}}</div>, document.body);

Previously, this threw (in `__DEV__` only) in `ReactCurrentOwner.current.constructor.displayName` because `ReactCurrentOwner.current` is null:

```
React.renderComponent(<div>{{1: <div />, 2: <div />}}</div>, document.body);
```
chenglou added a commit that referenced this pull request Mar 30, 2014
Don't break on top-level non-numeric object keys
@chenglou chenglou merged commit 7cbbff0 into facebook:master Mar 30, 2014
@zpao zpao mentioned this pull request Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants