Missing * with async generator methods
falsandtru opened this issue · 9 comments
falsandtru commented
// input
({
async *g() {},
async *[Symbol.asyncIterator]() {},
})
class C {
async *g() {}
async *[Symbol.asyncIterator]() {}
}
// output
({
async g() {},
async [Symbol.asyncIterator]() {},
})
class C {
async g() {}
async [Symbol.asyncIterator]() {}
}
falsandtru commented
ping @twada
falsandtru commented
@twada ?
twada commented
It's nothing to do with power-assert but It's a escodegen's problem. I'm working on it.
twada commented
FYI: Just made a pull-req to escodegen
estools/escodegen#375
falsandtru commented
Thanks.
falsandtru commented
@twada Looks like that fix isn't reflected because the dependencies and package-lock.json aren't updated. Can you update them and bump the version?
twada commented
- I'm using optimistic semver range (a.k.a
^
) package-lock.json
only affects top-level install, andpackage-lock.json
is removed from npm module on publish
So something is strange. I'm okay to bump and release but it's not a best solution here. We should rely on semver range.
Would you try cleaning node_modules
and package-lock.json
up and install again?
falsandtru commented
Resolved. I'd tried to remove and install power-assert but it wasn't enough. Thanks.
twada commented
@falsandtru Glad to hear that 👍