-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Useless constructor not removed during minification #3464
Comments
Those are not semantically equivalent. The latter observably uses ArrayIteratorPrototype; the former does not. For example, if you run (In some browsers the former will still throw because they have not yet implemented tc39/ecma262#2216.) |
why would someone do that to all their iterators? 🤔 which would be: code class Bar {}
export class Foo extends Bar {
constructor(foo, bar) {
super(foo, bar)
}
} actual class c{}export class Foo extends c{constructor(o,r){super(o,r)}} expected class c{}export class Foo extends c{} |
Playground link: https://esbuild.github.io/try/#dAAwLjE5LjUAewogIG1pbmlmeTogdHJ1ZQp9AGNsYXNzIEJhciB7fQpleHBvcnQgY2xhc3MgRm9vIGV4dGVuZHMgQmFyIHsKICBjb25zdHJ1Y3RvcigpIHsKICAgIHN1cGVyKC4uLmFyZ3VtZW50cykKICB9Cn0
Expected
Actual
related to: #3463
The text was updated successfully, but these errors were encountered: