Skip to content

Commit

Permalink
Update hasOwn to reflect change in operation order
Browse files Browse the repository at this point in the history
`ToObject` is now called before `ToPropertyKey` tc39/proposal-accessible-object-hasownproperty@d74b177
  • Loading branch information
jamiebuilds committed Apr 21, 2021
1 parent 8e1c655 commit 28afbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/has.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var hasOwnProperty = {}.hasOwnProperty;

module.exports = function hasOwn(it, key) {
return hasOwnProperty.call(it, key);
return hasOwnProperty.call(Object(it), key);
};

0 comments on commit 28afbf1

Please sign in to comment.