Skip to content

Commit

Permalink
Merge pull request #1324 from minseok-choe/fix/issue-createproperty
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock authored Jan 31, 2024
2 parents 04c612b + a3eddb0 commit 034b7cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core-js/internals/create-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ var createPropertyDescriptor = require('../internals/create-property-descriptor'

module.exports = function (object, key, value) {
var propertyKey = toPropertyKey(key);
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
else object[propertyKey] = value;
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
};

0 comments on commit 034b7cd

Please sign in to comment.