You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Super is not called at the top of the constructor resulting in "Uncaught ReferenceError: must call super constructor before using 'this' in derived class constructor." error. TBH I'm really not sure if this is the correct use of proxy in a constructor, but thought I'd flag.
class o {
constructor(e) {
console.log(e);
}
}
export class B extends o {
constructor(e) {
this.version = 5;
this.hello = () => {
alert("Hello");
};
return (
super(e),
new Proxy(this, {
set() {
return !0;
},
})
);
}
}
The text was updated successfully, but these errors were encountered:
Hello, thanks for creating such a great tool!
Was having a play around with proxies and noticed this issue with the minified code.
When I run
esbuild foo.ts --outfile=bar.js --target=es2019 --minify
Super is not called at the top of the constructor resulting in "Uncaught ReferenceError: must call super constructor before using 'this' in derived class constructor." error. TBH I'm really not sure if this is the correct use of proxy in a constructor, but thought I'd flag.
The text was updated successfully, but these errors were encountered: