feat(ivy): implement host bindings in JIT mode (#24479)

PR Close #24479
This commit is contained in:
Alex Rickabaugh
2018-06-12 16:58:09 -07:00
committed by Miško Hevery
parent 6d246d6c72
commit f00ae516eb
5 changed files with 117 additions and 19 deletions

View File

@ -221,7 +221,7 @@ export class BindingParser {
private _parseBinding(value: string, isHostBinding: boolean, sourceSpan: ParseSourceSpan):
ASTWithSource {
const sourceInfo = sourceSpan.start.toString();
const sourceInfo = (sourceSpan && sourceSpan.start || '(unknown)').toString();
try {
const ast = isHostBinding ?
@ -343,7 +343,7 @@ export class BindingParser {
}
private _parseAction(value: string, sourceSpan: ParseSourceSpan): ASTWithSource {
const sourceInfo = sourceSpan.start.toString();
const sourceInfo = (sourceSpan && sourceSpan.start || '(unknown').toString();
try {
const ast = this._exprParser.parseAction(value, sourceInfo, this._interpolationConfig);