fix(ivy): local refs in View and Content Queries should be pulled out into consts in generated code (#26240)

PR Close #26240
This commit is contained in:
Andrew Kushnir
2018-10-03 13:49:24 -07:00
committed by Jason Aden
parent d1b7bb52e7
commit d5e9405d4f
3 changed files with 138 additions and 106 deletions

View File

@ -112,7 +112,7 @@ export function getQueryPredicate(
const selectors = selector.split(',').map(token => o.literal(token.trim()));
predicate.push(...selectors);
});
return constantPool.getConstLiteral(o.literalArr(predicate));
return constantPool.getConstLiteral(o.literalArr(predicate), true);
} else {
return query.predicate;
}