fix scope when falling back to original load function

This commit is contained in:
Johannes Rieken
2019-08-19 14:11:46 +02:00
parent 57379e0f97
commit c8d44e24dd
3 changed files with 10 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ class WorkerRequireInterceptor extends RequireInterceptor {
}
if (this._factories.has(request)) {
return this._factories.get(request)!.load(request, parent, false, () => { throw new Error(); });
return this._factories.get(request)!.load(request, parent, () => { throw new Error('CANNOT LOAD MODULE from here.'); });
}
return undefined;
}