Commit b5f9744
committed
libdot: prefs: fix handling of null defaults
In JS, null is an object, so the "not simple primitive type" test
ends up considering all null settings as "not the default". Add
an explicit test for the null object to catch that.
Change-Id: Ia9a011d1eb1e741cec584f023b2e75d20ba019bf
Reviewed-on: https://chromium-review.googlesource.com/c/1352191
Tested-by: Mike Frysinger <[email protected]>
Reviewed-by: Vitaliy Shipitsyn <[email protected]>1 parent 5f342e8 commit b5f9744
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
609 | | - | |
| 607 | + | |
| 608 | + | |
610 | 609 | | |
611 | 610 | | |
612 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
613 | 623 | | |
614 | 624 | | |
615 | 625 | | |
| |||
0 commit comments