mirror of
https://github.com/imranismail/setup-kustomize.git
synced 2026-07-02 01:50:38 +00:00
Update metadata
This commit is contained in:
27
node_modules/es-abstract/es2017.js
generated
vendored
27
node_modules/es-abstract/es2017.js
generated
vendored
@@ -1,16 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
|
||||
var ES2016 = require('./es2016');
|
||||
var assign = require('./helpers/assign');
|
||||
var forEach = require('./helpers/forEach');
|
||||
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
var callBind = require('./helpers/callBind');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $isEnumerable = bind.call(Function.call, GetIntrinsic('%ObjectPrototype%').propertyIsEnumerable);
|
||||
var $pushApply = bind.call(Function.apply, GetIntrinsic('%ArrayPrototype%').push);
|
||||
var callBound = require('./helpers/callBound');
|
||||
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
||||
var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%'));
|
||||
var $arrayPush = callBound('Array.prototype.push');
|
||||
|
||||
var ES2017 = assign(assign({}, ES2016), {
|
||||
ToIndex: function ToIndex(value) {
|
||||
@@ -46,9 +47,25 @@ var ES2017 = assign(assign({}, ES2016), {
|
||||
return results;
|
||||
}
|
||||
throw new $TypeError('Assertion failed: "kind" is not "key", "value", or "key+value": ' + kind);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/8.0/#sec-iterabletolist
|
||||
IterableToList: function IterableToList(items, method) {
|
||||
var iterator = this.GetIterator(items, method);
|
||||
var values = [];
|
||||
var next = true;
|
||||
while (next) {
|
||||
next = this.IteratorStep(iterator);
|
||||
if (next) {
|
||||
var nextValue = this.IteratorValue(next);
|
||||
$arrayPush(values, nextValue);
|
||||
}
|
||||
}
|
||||
return values;
|
||||
}
|
||||
});
|
||||
|
||||
delete ES2017.EnumerableOwnNames; // replaced with EnumerableOwnProperties
|
||||
delete ES2017.IterableToArrayLike; // replaced with IterableToList
|
||||
|
||||
module.exports = ES2017;
|
||||
|
||||
Reference in New Issue
Block a user