fix(test): do not set ng.probe when ng is null or undefined
This commit is contained in:
parent
abc4ef31e2
commit
df7f59b3a8
|
@ -342,5 +342,8 @@ export function setValueOnPath(global: any, path: string, value: any) {
|
||||||
obj = obj[name] = {};
|
obj = obj[name] = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (obj === undefined || obj === null) {
|
||||||
|
obj = {};
|
||||||
|
}
|
||||||
obj[parts.shift()] = value;
|
obj[parts.shift()] = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue