fix(Compiler): Catch exceptions in the logging of binding update

fixes #9994
This commit is contained in:
Victor Berchet
2016-07-12 10:26:54 -07:00
parent b4ea0b1601
commit 27436270fd
5 changed files with 48 additions and 28 deletions

View File

@ -193,13 +193,13 @@ export enum BuiltinVar {
}
export class ReadVarExpr extends Expression {
public name: any /** TODO #9100 */;
public name: string;
public builtin: BuiltinVar;
constructor(name: string|BuiltinVar, type: Type = null) {
super(type);
if (isString(name)) {
this.name = <string>name;
this.name = name;
this.builtin = null;
} else {
this.name = null;
@ -270,7 +270,7 @@ export class InvokeMethodExpr extends Expression {
type: Type = null) {
super(type);
if (isString(method)) {
this.name = <string>method;
this.name = method;
this.builtin = null;
} else {
this.name = null;