You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@zazoomauro when I "fix" the issue, some tests fail with a ServiceNotFoundException.
was not looking at other tests, but chances are high that they throw a RangeError or something.
here a quick test:
//ContainerBuilder.spec.jschai.use(require('chai-as-promised'))it('should re-throw errors from failing compiler pass',async()=>{classCompilerPass{asyncprocess(){throwError('catch me if you can')}}container.addCompilerPass(newCompilerPass())awaitexpect(container.compile()).to.be.rejectedWith(Error)})
Hey,
don't know if this was by mistake, but the Compiler is swallowing all Errors other than RangeError, took me a while to debug this.
the original compile from was re-throwing:
looking at the code, compiling a frozen container should also thrown an Error imo.
The text was updated successfully, but these errors were encountered: