We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ref #4576 (comment) and commited in 5ea57d5
In an exec test, you can now return a promise. We use mochajs.org for tests and returning a promise will cause it to asynchronously call done.
babel/packages/babel-plugin-transform-async-generator-functions/test/fixtures/for-await/async-generator-exec/exec.js
Lines 22 to 25 in 5ea57d5
return forEach(genAnswers(), function(val) { output += val.value }) .then(function () { assert.equal(output, 42); });
You need to add to options.json (to fix parser error)
{ "parserOpts": { "allowReturnOutsideFunction": true } }
The suggestion is to allow a rejection instead of just .then
The text was updated successfully, but these errors were encountered:
@hzoo hi, this issue is already possible to close)
Sorry, something went wrong.
When did someone add it? I definetely don't remember adding it. There's no test with a return a().catch()
return a().catch()
@hzoo I can add this test
Successfully merging a pull request may close this issue.
Ref #4576 (comment) and commited in 5ea57d5
In an exec test, you can now return a promise. We use mochajs.org for tests and returning a promise will cause it to asynchronously call done.
babel/packages/babel-plugin-transform-async-generator-functions/test/fixtures/for-await/async-generator-exec/exec.js
Lines 22 to 25 in 5ea57d5
You need to add to options.json (to fix parser error)
The suggestion is to allow a rejection instead of just .then
The text was updated successfully, but these errors were encountered: