massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.bigint.range.js
1 'use strict';
2 /* eslint-disable es/no-bigint -- safe */
3 var $ = require('../internals/export');
4 var NumericRangeIterator = require('../internals/numeric-range-iterator');
5
6 // `BigInt.range` method
7 // https://github.com/tc39/proposal-Number.range
8 if (typeof BigInt == 'function') {
9   $({ target: 'BigInt', stat: true }, {
10     range: function range(start, end, option) {
11       return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));
12     }
13   });
14 }