Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 committed Apr 29, 2021
1 parent 87646ff commit c3c2019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es6-shim.js
Expand Up @@ -69,7 +69,7 @@
var _some = Function.call.bind(Array.prototype.some);

var defineProperty = function (object, name, value, force) {
if (!object || (!force && name in object)) { return; }
if (!force && name in object) { return; }
if (supportsDescriptors) {
Object.defineProperty(object, name, {
configurable: true,
Expand Down Expand Up @@ -665,7 +665,7 @@
var addIterator = function (prototype, impl) {
var implementation = impl || function iterator() { return this; };
defineProperty(prototype, $iterator$, implementation);
if (prototype && !prototype[$iterator$] && Type.symbol($iterator$)) {
if (!prototype[$iterator$] && Type.symbol($iterator$)) {
// implementations are buggy when $iterator$ is a Symbol
prototype[$iterator$] = implementation;
}
Expand Down

0 comments on commit c3c2019

Please sign in to comment.