perf: Don’t subclass Error; resulting in smaller binary (#14160)
Subclassing errors is problematic since Error returns a new instance. All of the patching which we do than prevent proper application of source maps. PR Close #14160
This commit is contained in:

committed by
Miško Hevery

parent
3c2842be96
commit
c33fda2607
@ -8,9 +8,11 @@
|
||||
|
||||
import {Compiler, CompilerOptions, Component, Directive, Injector, NgModule, Pipe, Type} from '@angular/core';
|
||||
|
||||
import {unimplemented} from './facade/errors';
|
||||
import {MetadataOverride} from './metadata_override';
|
||||
|
||||
function unimplemented(): any {
|
||||
throw Error('unimplemented');
|
||||
}
|
||||
|
||||
/**
|
||||
* Special interface to the compiler only used by testing
|
||||
|
Reference in New Issue
Block a user