Skip to content

Commit

Permalink
Address #86 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bvisness committed Oct 3, 2024
1 parent 0daa439 commit 9b59a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,9 @@ The algorithm <dfn>IndexValueToU64</dfn>(|v|, |indextype|) converts a JavaScript

Note: This is equivalent to the [=js-unsigned-long|JS conversion rules=] for [=[EnforceRange]=] [=unsigned long=].
1. Return [=ℝ=](|n|) as a WebAssembly [=u64=].
1. Else if |indextype| is "i64",
1. If |indextype| is "i64",
1. Let |n| be [=?=] [$ToBigInt$](|v|).
1. If |n| is not equal to [=!=] [$ToBigUint64$](|n|), [=throw=] a {{TypeError}}.
1. If |n| &lt; 0 or |n| &gt; 2<sup>64</sup> &minus; 1, [=throw=] a {{TypeError}}.

Note: This operation is designed to emulate [=[EnforceRange]=].
1. Return [=ℝ=](|n|) as a WebAssembly [=u64=].
Expand Down

0 comments on commit 9b59a4b

Please sign in to comment.