From df7f59b3a814754e2107ed89fe13f6274b598d19 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Wed, 9 Sep 2015 15:21:02 +0200 Subject: [PATCH] fix(test): do not set ng.probe when ng is null or undefined --- modules/angular2/src/core/facade/lang.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/angular2/src/core/facade/lang.ts b/modules/angular2/src/core/facade/lang.ts index f013f43bca..e38fd57158 100644 --- a/modules/angular2/src/core/facade/lang.ts +++ b/modules/angular2/src/core/facade/lang.ts @@ -342,5 +342,8 @@ export function setValueOnPath(global: any, path: string, value: any) { obj = obj[name] = {}; } } + if (obj === undefined || obj === null) { + obj = {}; + } obj[parts.shift()] = value; }