googlearchive / firebase-util

An experimental toolset for Firebase
http://firebase.github.io/firebase-util
MIT License
276 stars 58 forks source link

We assume exportVal() always returns an object #24

Closed katowulf closed 9 years ago

katowulf commented 9 years ago

But this isn't true. If exportVal() encounters a primitive with no priority, it will return the primitive. This probably breaks some of our parsing code in common/libs/utils.js

katowulf commented 9 years ago

Went through all usages of exportVal() and it looks like we got these right. None of the calls depend on this value being an object.