From 7d4716f4fd147b86815fc55f75d9731d399ed4a8 Mon Sep 17 00:00:00 2001 From: James Long Date: Wed, 29 Apr 2015 00:16:48 -0400 Subject: [PATCH] make include statements trigger async conversion inside if/for statements (fixes #372) --- src/transformer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transformer.js b/src/transformer.js index d76d4250..9f08738c 100644 --- a/src/transformer.js +++ b/src/transformer.js @@ -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;