fix(compiler-cli): do not fold errors past calls in the collector (#21708)
Folding errors passed calls prevented the static reflector from begin able to ignore errors in annotations it doesn't know as the call to the unknown annotation was elided from the metadata. Fixes: #21273 PR Close #21708
This commit is contained in:

committed by
Miško Hevery

parent
eecdf3414e
commit
52970c09e1
@ -364,7 +364,8 @@ describe('StaticReflector', () => {
|
||||
const classData: any = moduleMetadata['InvalidMetadata'];
|
||||
expect(classData).toBeDefined();
|
||||
simplify(
|
||||
reflector.getStaticSymbol('/tmp/src/invalid-metadata.ts', ''), classData.decorators[0]);
|
||||
reflector.getStaticSymbol('/tmp/src/invalid-metadata.ts', ''),
|
||||
classData.decorators[0].arguments);
|
||||
} catch (e) {
|
||||
expect(e.position).toBeDefined();
|
||||
threw = true;
|
||||
|
Reference in New Issue
Block a user