-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[async] Cannot read property 'members' of undefined #3978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nippur72: TypeScript 1.5.3 does not contain support for Async Functions, and I cannot seem to repro this in master. It's possible a recent unrelated change may have fixed this. Is it possible you were using a different version of the compiler than the one you mentioned above? Can you verify the version of the compiler you are using, or possibly verify this against a recent nightly build? |
@nippur72 can you try using latest `typescript@next? |
thanks @nippur72 for confirming. |
I think the issue is not yet gone. I'm using The following code seems to trigger the error: async function abcd() {
console.log('abcd');
}
abcd().then(() => {
console.log('then');
}); or async function abcd() {
console.log('abcd');
}
async function runAbcd() {
await abcd();
}
runAbcd(); The following compiles (unfortunately there's no awaiting mechanism): async function abcd() {
console.log('abcd');
}
abcd();
iojs versions:
|
Yes the issue is back, I re-discovered it yesterday in 1.6 nightly, so I'm reopening it. |
This is now fixed for 1.6. |
when compiling this code for ES5 (not ES6)
instead of giving the "only available in ES6" warning, it throws this exception:
using tsc
1.5.3
The text was updated successfully, but these errors were encountered: