TypeScript/tests/baselines/reference/computedPropertyNames29_ES6.js

24 lines
424 B
TypeScript
Raw Normal View History

//// [computedPropertyNames29_ES6.ts]
class C {
bar() {
() => {
var obj = {
[this.bar()]() { } // needs capture
};
}
return 0;
}
}
//// [computedPropertyNames29_ES6.js]
2015-03-16 00:29:41 +01:00
class C {
bar() {
(() => {
var obj = {
[this.bar()]() { } // needs capture
};
});
return 0;
2015-03-16 00:29:41 +01:00
}
}