feat(change_detect): Guard checkNoChanges behind assertionsEnabled

Always generate `checkNoChanges` tests, but guard them behind
`assertionsEnabled` tests.

Closes #4560
This commit is contained in:
Tim Blasi
2015-10-28 10:06:53 -07:00
parent 2d0c8f1b0e
commit 63e853dcd7
14 changed files with 42 additions and 60 deletions
+1 -4
View File
@@ -40,10 +40,7 @@ export function compilerProviders(): Array<Type | Provider | any[]> {
CommandCompiler,
ChangeDetectionCompiler,
provide(ChangeDetectorGenConfig,
{
useValue:
new ChangeDetectorGenConfig(assertionsEnabled(), assertionsEnabled(), false, true)
}),
{useValue: new ChangeDetectorGenConfig(assertionsEnabled(), false, true)}),
TemplateCompiler,
provide(RuntimeCompiler, {useClass: RuntimeCompiler_}),
provide(Compiler, {useExisting: RuntimeCompiler}),