Rewrite Hub as interface #5047

This commit is contained in:
Yongxu Ren
2016-12-27 11:52:51 -05:00
committed by Nicolò Ribaudo
parent 3a399d1eb9
commit 0fd3da110d
12 changed files with 67 additions and 32 deletions

View File

@@ -112,7 +112,7 @@ export function wrapInterop(
throw new Error(`Unknown interop: ${type}`);
}
return t.callExpression(programPath.hub.file.addHelper(helper), [expr]);
return t.callExpression(programPath.hub.addHelper(helper), [expr]);
}
/**