chore(build): fix flakiness of the element probe global test
This commit is contained in:
@ -354,7 +354,7 @@ export function setValueOnPath(global: any, path: string, value: any) {
|
||||
var obj: any = global;
|
||||
while (parts.length > 1) {
|
||||
var name = parts.shift();
|
||||
if (obj.hasOwnProperty(name)) {
|
||||
if (obj.hasOwnProperty(name) && isPresent(obj[name])) {
|
||||
obj = obj[name];
|
||||
} else {
|
||||
obj = obj[name] = {};
|
||||
|
Reference in New Issue
Block a user