Skip to content

Commit

Permalink
make include statements trigger async conversion inside if/for statem…
Browse files Browse the repository at this point in the history
…ents (fixes mozilla#372)
  • Loading branch information
jlongster committed Apr 29, 2015
1 parent a2b2720 commit 7d4716f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ function convertStatements(ast) {
node instanceof nodes.IfAsync ||
node instanceof nodes.AsyncEach ||
node instanceof nodes.AsyncAll ||
node instanceof nodes.CallExtensionAsync) {
node instanceof nodes.CallExtensionAsync ||
node instanceof nodes.Include) {
async = true;
// Stop iterating by returning the node
return node;
Expand Down

0 comments on commit 7d4716f

Please sign in to comment.