Skip to content

Commit 28afbf1

Browse files
authored
Update hasOwn to reflect change in operation order
`ToObject` is now called before `ToPropertyKey` tc39/proposal-accessible-object-hasownproperty@d74b177
1 parent 8e1c655 commit 28afbf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/core-js/internals

packages/core-js/internals/has.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var hasOwnProperty = {}.hasOwnProperty;
22

33
module.exports = function hasOwn(it, key) {
4-
return hasOwnProperty.call(it, key);
4+
return hasOwnProperty.call(Object(it), key);
55
};

0 commit comments

Comments
 (0)