Skip to content

Commit 4f7b958

Browse files
committed
Fix external variables in some functions
1 parent 970780c commit 4f7b958

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)