Skip to content

Commit 06701a0

Browse files
authored
Merge pull request keichi#156 from mohd-akram/allow-extern-vars
Fix external variables in some functions
2 parents 970780c + 4f7b958 commit 06701a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class Context {
3333
case 'string':
3434
return this.generateVariable(val);
3535
case 'function':
36-
return `(${val}).call(${this.generateVariable()}, vars)`;
36+
return `${this.addImport(val)}.call(${this.generateVariable()}, vars)`;
3737
}
3838
}
3939

0 commit comments

Comments
 (0)