You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rename function in index.js uses obj.hasOwnProperty, which is not defined when the object does not inherit from Object.prototype. In the most basic example, this would fail with TypeError: obj.hasOwnProperty is not a function:
The
rename
function inindex.js
usesobj.hasOwnProperty
, which is not defined when the object does not inherit fromObject.prototype
. In the most basic example, this would fail withTypeError: obj.hasOwnProperty is not a function
:A more realistic example would be trying to rename the keys of an object returned from
querystring
, which in Node v6 stopped inheriting fromObject.prototype
.Live example of the same
The text was updated successfully, but these errors were encountered: