Serializer does not check object for a prototype before calling hasOwnProperty() #732
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Latest version.
https://github.com/googleapis/nodejs-firestore/search?q=hasOwnProperty&unscoped_q=hasOwnProperty
The bigger issue is that if I try to save an object into the firestore was created with
Object.create(null)
, the save fails due to the object not having hasOwnProperty. It is quite difficult to debug as a resultRelated reasoning and background and example code:
The text was updated successfully, but these errors were encountered: