You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
): either a normal completion containing a Record with fields [[From]] (a non-negative integer) and [[To]] (a non-negative integer) or a throw completion
26
+
</h1>
27
+
<dl class="header">
28
+
</dl>
29
+
<emu-alg>
30
+
1. Let _relativeStart_ be ? ToIntegerOrInfinity(_start_).
31
+
1. If _relativeStart_ = -∞, let _from_ be 0.
32
+
1. Else if _relativeStart_ < 0, let _from_ be max(_len_ + _relativeStart_, 0).
33
+
1. Else, let _from_ be min(_relativeStart_, _len_).
34
+
1. If _end_ is *undefined*, let _relativeEnd_ be _len_; else let _relativeEnd_ be ? ToIntegerOrInfinity(_end_).
35
+
1. If _relativeEnd_ = -∞, let _to_ be 0.
36
+
1. Else if _relativeEnd_ < 0, let _to_ be max(_len_ + _relativeEnd_, 0).
37
+
1. Else, let _to_ be min(_relativeEnd_, _len_).
38
+
1. Return the Record { [[From]]: _from_, [[To]]: _to_ }.
0 commit comments