X Tutup
Skip to content

Commit df7f59b

Browse files
committed
fix(test): do not set ng.probe when ng is null or undefined
1 parent abc4ef3 commit df7f59b

File tree

1 file changed

+3
-0
lines changed
  • modules/angular2/src/core/facade

1 file changed

+3
-0
lines changed

modules/angular2/src/core/facade/lang.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,5 +342,8 @@ export function setValueOnPath(global: any, path: string, value: any) {
342342
obj = obj[name] = {};
343343
}
344344
}
345+
if (obj === undefined || obj === null) {
346+
obj = {};
347+
}
345348
obj[parts.shift()] = value;
346349
}

0 commit comments

Comments
 (0)
X Tutup