* Parse quoted constructors as constructors, not methods * Update baselines * Fix disambiguation between quoted constructor and property named constructor * Clean up parsing a bit * Support escapes in constructor name * Update baselines
31 lines
380 B
TypeScript
31 lines
380 B
TypeScript
class C {
|
|
"constructor"() {
|
|
console.log(this);
|
|
}
|
|
}
|
|
|
|
class D {
|
|
'constructor'() {
|
|
console.log(this);
|
|
}
|
|
}
|
|
|
|
class E {
|
|
['constructor']() {
|
|
console.log(this);
|
|
}
|
|
}
|
|
|
|
new class {
|
|
"constructor"() {
|
|
console.log(this);
|
|
}
|
|
};
|
|
|
|
var o = { "constructor"() {} };
|
|
|
|
class F {
|
|
"\x63onstructor"() {
|
|
console.log(this);
|
|
}
|
|
}
|