Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safer use of
Object.prototype.hasOwnProperty
(#3069)
* Safer use of `Object.prototype.hasOwnProperty` Fixes an error I get when GraphQL JS passes a prototypeless object into the resolver ``` ReferenceError: maybeRef is not defined at eval (eval at <anonymous> (/Users/mattalexander/Projects/edge-sites-schema/tests/regression.test.js:67:7), <anonymous>:1:38) at forEach (/projectpath/tests/regression.test.js:67:7) at Array.forEach (<anonymous>) at Object.<anonymous> (/projectpath/tests/regression.test.js:65:17) ``` * changeset and test Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
- Loading branch information