Conflicts: src/compiler/emitter.ts tests/baselines/reference/FunctionPropertyAssignments5_es6.js tests/baselines/reference/computedPropertyNames9_ES6.js tests/baselines/reference/computedPropertyNamesDeclarationEmit3.js tests/baselines/reference/computedPropertyNamesDeclarationEmit4.js tests/baselines/reference/parserES5ComputedPropertyName3.js tests/baselines/reference/parserES5ComputedPropertyName4.js
26 lines
508 B
JavaScript
26 lines
508 B
JavaScript
//// [computedPropertyNames29_ES6.ts]
|
|
class C {
|
|
bar() {
|
|
() => {
|
|
var obj = {
|
|
[this.bar()]() { } // needs capture
|
|
};
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames29_ES6.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.bar = function () {
|
|
(() => {
|
|
var obj = {
|
|
[this.bar()]() { } // needs capture
|
|
};
|
|
});
|
|
return 0;
|
|
};
|
|
return C;
|
|
})();
|