Skip to content

Commit e780b40

Browse files
committed
Address review comment.
1 parent 0ff276c commit e780b40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

document/js-api/index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ urlPrefix: https://webassembly.github.io/spec/core/; spec: WebAssembly; type: df
166166
text: −∞
167167
text: nan
168168
text: canon
169+
text: signif
169170
text: function element; url: exec/runtime.html#syntax-funcelem
170171
text: import component; url: syntax/modules.html#imports
171172
text: external value; url: exec/runtime.html#syntax-externval
@@ -1130,15 +1131,15 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript va
11301131
1. If |type| is [=f32=],
11311132
1. Let |number| be ? [=ToNumber=](|v|).
11321133
1. If |number| is **NaN**,
1133-
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>32</sub> ≤ |n| < 2<sup>32</sup>.
1134+
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>32</sub> ≤ |n| < 2<sup>[=signif=](32)</sup>.
11341135
1. Let |f32| be [=nan=](n).
11351136
1. Otherwise,
11361137
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2008 round to nearest, ties to even mode. [[IEEE-754]]
11371138
1. Return [=f32.const=] |f32|.
11381139
1. If |type| is [=f64=],
11391140
1. Let |number| be ? [=ToNumber=](|v|).
11401141
1. If |number| is **NaN**,
1141-
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>64</sub> ≤ |n| < 2<sup>64</sup>.
1142+
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>64</sub> ≤ |n| < 2<sup>[=signif=](64)</sup>.
11421143
1. Let |f64| be [=nan=](n).
11431144
1. Otherwise,
11441145
1. Let |f64| be |number|.

0 commit comments

Comments
 (0)