Assume ES5+ built-ins exist.

This commit is contained in:
John-David Dalton
2017-01-09 19:06:04 -08:00
parent 8501b0c2ef
commit 8bc7e006db
26 changed files with 18 additions and 117 deletions

View File

@@ -1,5 +1,3 @@
import defineProperty from './_defineProperty.js';
/**
* The base implementation of `assignValue` and `assignMergeValue` without
* value checks.
@@ -10,8 +8,8 @@ import defineProperty from './_defineProperty.js';
* @param {*} value The value to assign.
*/
function baseAssignValue(object, key, value) {
if (key == '__proto__' && defineProperty) {
defineProperty(object, key, {
if (key == '__proto__') {
Object.defineProperty(object, key, {
'configurable': true,
'enumerable': true,
'value': value,