-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Even though we don't yet support generator functions and methods, we do parse them. However, we do not emit the asterisk token or yield expression on output, which means that if I'm using --target ES6 my input does not align with my output for something we actually parse:
// a.ts
class C {
*[Symbol.iterator]() {
let a = yield 1;
}
}
// a.js
class C {
[Symbol.iterator]() {
let a = ;
}
}We should just emit these tokens.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue