Brian C e85afe157f Make native non-enumerable (#2065)
* Make `native` non-enumerable

Making it non-enumerable means less spurious "Cannot find module"
errors in your logs when iterating over `pg` objects.

`Object.defineProperty` has been available since Node 0.12.

See https://github.com/brianc/node-postgres/issues/1894#issuecomment-543300178

* Add test for `native` enumeration

Co-authored-by: Gabe Gorelick <gabegorelick@gmail.com>
2020-01-28 10:39:59 -06:00
..
2020-01-28 10:39:59 -06:00
2020-01-10 09:22:00 -06:00
2019-12-27 03:56:07 +00:00
2020-01-15 15:44:08 -08:00