Update metadata

This commit is contained in:
Imran Ismail
2019-09-05 12:08:20 +08:00
parent 6e5c237523
commit 56c04146d7
1454 changed files with 204046 additions and 234789 deletions

27
node_modules/es-abstract/es2017.js generated vendored
View File

@@ -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;