Skip to content

Commit ad7beec

Browse files
committed
fix for async idents and local functions
1 parent bd4fc51 commit ad7beec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hscript/Async.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class Async {
216216
if( !syncFlag )
217217
return;
218218
switch( expr(e) ) {
219-
case ECall(expr(_) => EIdent(i),_) if( isAsyncIdent(i) ):
219+
case ECall(expr(_) => EIdent(i),_) if( isAsyncIdent(i) || vars.get(i) == Defined ):
220220
syncFlag = false;
221221
case ECall(expr(_) => EField(_,i),_) if( isAsyncIdent(i) ):
222222
syncFlag = false;

0 commit comments

Comments
 (0)