Join GitHub today
Prevent systemPreferences.getUserDefault crash for missing arrays/dictionaries #7993
This pull requests returns empty array/objects instead of crashing when this happens.
Also adds specs for the values returned when the key has no default.
I thought about that a bit, it looks like numbers, booleans, strings, and urls return valid values instead of undefined/null when their missing so empty arrays/objects seemed to make it consistent with that existing behavior.