diff --git a/remix-tests/src/compiler.ts b/remix-tests/src/compiler.ts index 9d580df4a2..ae48a8c097 100644 --- a/remix-tests/src/compiler.ts +++ b/remix-tests/src/compiler.ts @@ -106,9 +106,10 @@ export function compileContractSources(sources: SrcIfc, versionUrl: any, usingWo function loadCompiler (next: Function) { compiler = new RemixCompiler(importFileCb) compiler.loadVersion(usingWorker, versionUrl) - compiler.event.register('compilerLoaded', this, function (version) { + // @ts-ignore + compiler.event.register('compilerLoaded', this, (version) => { next() - }); + }) }, function doCompilation (next: Function) { // @ts-ignore