We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useDefineForClassFields
I can't reproduce online but here's the repro.
Bug: microsoft/TypeScript#35590 Also related: microsoft/TypeScript#35426
{ "compilerOptions": { "target": "es2017", "useDefineForClassFields": true } }
export default class { private _form!: HTMLFormElement; constructor() { console.log(this._form) } }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class default_1 { constructor() { Object.defineProperty(this, "_form", { enumerable: true, configurable: true, writable: true, value: _form ///////////////// WRONG }); console.log(this._form); } } exports.default = default_1;
Online that value is correctly set to void 0 instead of an undefined variable.
void 0
The text was updated successfully, but these errors were encountered:
I can't reproduce online
The bug was introduced in 3.7.3. The Playground is currently on 3.7.2; you can reproduce if you switch the Playground to Nightly.
Sorry, something went wrong.
Ugh. Yeah, let's just disable it for now.
1af7e71
No branches or pull requests
I can't reproduce online but here's the repro.
Bug: microsoft/TypeScript#35590
Also related: microsoft/TypeScript#35426
Input
Output
Online that value is correctly set to
void 0
instead of an undefined variable.The text was updated successfully, but these errors were encountered: