File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ urlPrefix: https://webassembly.github.io/spec/core/; spec: WebAssembly; type: df
166
166
text: −∞
167
167
text: nan
168
168
text: canon
169
+ text: signif
169
170
text: function element; url: exec/runtime.html#syntax-funcelem
170
171
text: import component; url: syntax/modules.html#imports
171
172
text: external value; url: exec/runtime.html#syntax-externval
@@ -1130,15 +1131,15 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript va
1130
1131
1. If |type| is [=f32=] ,
1131
1132
1. Let |number| be ? [=ToNumber=] (|v|).
1132
1133
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> .
1134
1135
1. Let |f32| be [=nan=] (n).
1135
1136
1. Otherwise,
1136
1137
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2008 round to nearest, ties to even mode. [[IEEE-754]]
1137
1138
1. Return [=f32.const=] |f32|.
1138
1139
1. If |type| is [=f64=] ,
1139
1140
1. Let |number| be ? [=ToNumber=] (|v|).
1140
1141
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> .
1142
1143
1. Let |f64| be [=nan=] (n).
1143
1144
1. Otherwise,
1144
1145
1. Let |f64| be |number|.
You can’t perform that action at this time.
0 commit comments