Skip to content

Commit

Permalink
Object.assign should be shimmed in all environments, not just a true …
Browse files Browse the repository at this point in the history
…ES5 environment
  • Loading branch information
ljharb committed Jun 2, 2014
1 parent 46806e9 commit 9a60512
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,10 @@
proto = Object.getPrototypeOf(proto);
}
return result;
},
}
});

defineProperties(Object, {
// 19.1.3.1
assign: function(target, source) {
if (!ES.TypeIsObject(target)) {
Expand All @@ -788,12 +790,10 @@
return target;
}, target);
});
}
});
},

// 19.1.3.9
// shim from https://gist.github.com/WebReflection/5593554
defineProperties(Object, {
// 19.1.3.9
// shim from https://gist.github.com/WebReflection/5593554
setPrototypeOf: (function(Object, magic) {
var set;

Expand Down

0 comments on commit 9a60512

Please sign in to comment.