referenced static property in class instance throws ReferenceError #11990
Labels
i: bug
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 below code throws ReferenceError: B is not defined.
It works natively in node.js (latest/14.8.0) as well as TypeScript (latest/4.0)
Input Code
Workaround
Expected behavior
should not throw an error.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Babel version(s):
"@babel/cli": "7.10.5",
"@babel/core": "7.11.4",
"@babel/node": "7.10.5",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/plugin-transform-typescript": "7.11.0",
Node/npm version: 14.8.0
OS: macOS 10.15.6
The text was updated successfully, but these errors were encountered: