fix(ivy): add typeof guard around ngDevMode for instances where we cannot set it in Node (#25475)
PR Close #25475
This commit is contained in:
parent
fb2c5241fc
commit
1bb30147d3
|
@ -19,8 +19,10 @@ import {CssSelectorList, SelectorFlags} from './interfaces/projection';
|
||||||
|
|
||||||
const EMPTY: {} = {};
|
const EMPTY: {} = {};
|
||||||
const EMPTY_ARRAY: any[] = [];
|
const EMPTY_ARRAY: any[] = [];
|
||||||
ngDevMode && Object.freeze(EMPTY);
|
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
||||||
ngDevMode && Object.freeze(EMPTY_ARRAY);
|
Object.freeze(EMPTY);
|
||||||
|
Object.freeze(EMPTY_ARRAY);
|
||||||
|
}
|
||||||
let _renderCompCount = 0;
|
let _renderCompCount = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue