23 lines
424 B
TypeScript
23 lines
424 B
TypeScript
//// [computedPropertyNames29_ES6.ts]
|
|
class C {
|
|
bar() {
|
|
() => {
|
|
var obj = {
|
|
[this.bar()]() { } // needs capture
|
|
};
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames29_ES6.js]
|
|
class C {
|
|
bar() {
|
|
(() => {
|
|
var obj = {
|
|
[this.bar()]() { } // needs capture
|
|
};
|
|
});
|
|
return 0;
|
|
}
|
|
}
|