-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Description
Can you reproduce the problem with latest npm?
Yes
Description
Using [email protected] and [email protected], computed object keys that contain <= are throwing a Parsing error: Unexpected token.
Expected behavior
The code should work to produce an object with duplicated keys like:
const map = {
true: -90,
true: -20,
false: -10,
false: 0
}
Actual behavior
Parsing error: Unexpected token
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts(if you haven’t ejected): [email protected]node -v: v6.0.0npm -v: 3.8.6
Then, specify:
- Operating system: OS X El Capitan v10.11.6
- Browser and version: N/A (Issue in terminal not browser)
