Babel throws confusing error when private property is used as computed key #11414
Labels
i: enhancement
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Spec: Class Fields
Bug Report
Current Behavior
The following snippet, after transformed, throws
Input Code
Expected behavior/code
It should throw
Environment
REPL
Possible Solution
We should also check if
privateMap
isundefined
inbabel/packages/babel-helpers/src/helpers.js
Line 1121 in a6e8b38
Additional context/Screenshots
Found this issue when reviewing PR 11405.
The text was updated successfully, but these errors were encountered: