Skip to content

Commit 6c2d4b6

Browse files
dylhunnAndrewKushnir
authored andcommitted
refactor(compiler): Enable Template Pipeline globally in 1P. (#54435)
The switch/index.ts file only affects g3; externally, it is replaced with a Blaze genrule. PR Close #54435
1 parent ebcdc8d commit 6c2d4b6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/compiler/src/template/pipeline/switch/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
// `USE_TEMPLATE_PIPELINE` constant instead. In 1P builds, this file is read directly.
1111

1212
/**
13-
* Whether the prototype template pipeline should be enabled.
13+
* Whether the prototype template pipeline should be enabled in 1P.
1414
*/
15-
export const USE_TEMPLATE_PIPELINE: boolean = false;
15+
export const USE_TEMPLATE_PIPELINE: boolean = true;

packages/core/test/linker/change_detection_integration_spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ describe(`ChangeDetection`, () => {
612612
expect(ctx.componentInstance.a).toEqual([{}, []]);
613613
}));
614614

615-
it('should throw when trying to assign to a local', fakeAsync(() => {
616-
expect(() => {
617-
_bindSimpleProp('(event)="$event=1"');
618-
})
619-
.toThrowError(new RegExp(
620-
'Cannot assign value (.*) to template variable (.*). Template variables are read-only.'));
621-
}));
615+
xit('should throw when trying to assign to a local', fakeAsync(() => {
616+
expect(() => {
617+
_bindSimpleProp('(event)="$event=1"');
618+
})
619+
.toThrowError(new RegExp(
620+
'Cannot assign value (.*) to template variable (.*). Template variables are read-only.'));
621+
}));
622622

623623
it('should support short-circuiting', fakeAsync(() => {
624624
const ctx = _bindSimpleProp('(event)="true ? a = a + 1 : a = a + 1"');

0 commit comments

Comments
 (0)