'use strict'; var ES2016 = require('./es2016'); var assign = require('./helpers/assign'); var ES2017 = assign(assign({}, ES2016), { ToIndex: function ToIndex(value) { if (typeof value === 'undefined') { return 0; } var integerIndex = this.ToInteger(value); if (integerIndex < 0) { throw new RangeError('index must be >= 0'); } var index = this.ToLength(integerIndex); if (!this.SameValueZero(integerIndex, index)) { throw new RangeError('index must be >= 0 and < 2 ** 53 - 1'); } return index; } }); delete ES2017.EnumerableOwnNames; // replaced with EnumerableOwnProperties module.exports = ES2017;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
helpers | Folder | 0755 |
|
|
operations | Folder | 0755 |
|
|
.editorconfig | File | 276 B | 0644 |
|
.jscs.json | File | 3.91 KB | 0644 |
|
.nycrc | File | 234 B | 0644 |
|
.travis.yml | File | 6.8 KB | 0644 |
|
CHANGELOG.md | File | 6.43 KB | 0644 |
|
GetIntrinsic.js | File | 8.38 KB | 0644 |
|
LICENSE | File | 1.05 KB | 0644 |
|
Makefile | File | 3.75 KB | 0644 |
|
README.md | File | 1.8 KB | 0644 |
|
es2015.js | File | 21.28 KB | 0644 |
|
es2016.js | File | 454 B | 0644 |
|
es2017.js | File | 633 B | 0644 |
|
es5.js | File | 6.33 KB | 0644 |
|
es6.js | File | 53 B | 0644 |
|
es7.js | File | 53 B | 0644 |
|
index.js | File | 427 B | 0644 |
|
package.json | File | 2.37 KB | 0644 |
|