diff --git a/README.md b/README.md index 24b9994..4bdba8f 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ See the rendered spec at [here](https://tc39.es/proposal-Number.range/). ## Polyfill -- A polyfill is available in the [core-js](https://github.com/zloirock/core-js) library. You can find it in the [ECMAScript proposals section](https://github.com/zloirock/core-js/#numberrange). +- A polyfill is available in the [core-js](https://github.com/zloirock/core-js) library. You can find it in the [ECMAScript proposals section](https://github.com/zloirock/core-js/#numberrange). -- In the proposal repo is available a [a step-to-step implementation of the proposal](./polyfill.js) [![codecov](https://codecov.io/gh/tc39/proposal-Number.range/branch/master/graph/badge.svg)](https://codecov.io/gh/tc39/proposal-Number.range) so you can verify if there is a bug in the specification by the debugger. +- In the proposal repo is available a [a step-to-step implementation of the proposal](./polyfill.js) [![codecov](https://codecov.io/gh/tc39/proposal-Number.range/branch/master/graph/badge.svg)](https://codecov.io/gh/tc39/proposal-Number.range) so you can verify if there is a bug in the specification by the debugger. ## Motivation @@ -93,7 +93,7 @@ function* even() { # Presentations -- 2020 Apr [Notes](https://github.com/tc39/notes/blob/master/meetings/2020-03/april-1.md#numberrange-and-bigintrange-for-stage-1) [Slides](https://docs.google.com/presentation/d/1JD9SrOEtGEviPYJ3LQGKRqDHYeF-EIt7RHB92hKPWzo/) +- 2020 Apr [Notes](https://github.com/tc39/notes/blob/master/meetings/2020-03/april-1.md#numberrange-and-bigintrange-for-stage-1) [Slides](https://docs.google.com/presentation/d/1JD9SrOEtGEviPYJ3LQGKRqDHYeF-EIt7RHB92hKPWzo/) ### Signature diff --git a/index.html b/index.html index ff41569..a0a54b4 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ -Proposal Number.range & BigInt.range
-title: Proposal Number.range & BigInt.range
+title: Proposal Iterator.range.numeric
 stage: 1
 contributors: "Jack Works"
 
- -

Number

+ +

Iterator

-

Number.range(_start_, _end_, _option_)

+

Iterator.range.numeric(_start_, _end_, _option_)

- 1. Return ? CreateRangeIterator(_start_, _end_, _option_, *"number"*). - -
-
- -

BigInt

- -

BigInt.range(_start_, _end_, _option_)

- - 1. Return ? CreateRangeIterator(_start_, _end_, _option_, *"bigint"*). + 1. Return ? CreateNumericRangeIterator(_start_, _end_, _option_).

Algorithms

-

CreateRangeIterator(_start_, _end_, _option_, _type_)

+

CreateNumericRangeIterator(_start_, _end_, _option_)

1. If Type(_start_) is not _type_, throw a *TypeError* exception. - 1. Assert: _type_ is *"number"* or *"bigint"*. + 1. Let _type_ be TypeOf(_start_). + 1. If _type_ is not *"number"* or *"bigint"*, throw a *TypeError* exception. 1. If _type_ is *"bigint"*, let _zero_ be *0n*, else let _zero_ be *0*. 1. If _type_ is *"bigint"*, let _one_ be *1n*, else let _one_ be *1*. 1. Note: Allowing all kinds of number (number, bigint, decimals, ...) to range from a finite number to infinity.