mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed issue with nested observables when null is given as property value.
This commit is contained in:
@@ -534,4 +534,11 @@ export function test_NestedObservablesWithObservableArrayShouldNotCrash() {
|
||||
secondProp: someObservableArray
|
||||
});
|
||||
TKUnit.assert(testObservable !== undefined);
|
||||
}
|
||||
|
||||
export function test_NestedObservableWithNullShouldNotCrash() {
|
||||
let testObservable = observable.fromObjectRecursive({
|
||||
someProperty: null
|
||||
});
|
||||
TKUnit.assert(testObservable !== undefined);
|
||||
}
|
||||
Reference in New Issue
Block a user