swc/tests/tsc-references/es6/classDeclaration/emitClassDeclarationWithLiteralPropertyNameInES6/input.ts/es2015.1.normal/output.js

22 lines
321 B
JavaScript

// @target: es6
class B {
"foo"() {
}
14() {
}
11() {
}
interface() {
}
constructor(){
this["hello"] = 10;
this[6] = "world";
this[10076] = "WORLD";
this[20] = "twenty";
}
}
B["hi"] = 10000;
B[22] = "twenty-two";
B[5] = "binary";
B[1693] = "octal";