Skip to content

Commit 34149d8

Browse files
committed
Fixes suggested by @jf
1 parent 621df25 commit 34149d8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Web.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ synchronous calling to and from JavaScript.
2323
### Function Names
2424

2525
A WebAssembly module imports and exports functions. WebAssembly names functions
26-
using arbitrary-length byte sequences. The null character is permitted inside
27-
WebAssembly function names. The most natural Web representation of a mapping of
28-
function names to functions is a JS object in which each function is a property.
29-
Property names in JS are UTF-16 encoded strings. A WebAssembly modulde may fail
30-
validation on the Web if it imports or exports functions whose names do not
31-
transcode cleanly to UTF-16 according to the following conversion algorithm,
32-
assuming that the WebAssembly name is in a `Uint8Array` called `array`:
26+
using arbitrary-length byte sequences. Any 8-bit values are permitted in a
27+
WebAssembly name, including the null byte and byte sequences that don't
28+
correspond to any Unicode code point regardless of encoding. The most natural
29+
Web representation of a mapping of function names to functions is a JS object
30+
in which each function is a property. Property names in JS are UTF-16 encoded
31+
strings. A WebAssembly module may fail validation on the Web if it imports or
32+
exports functions whose names do not transcode cleanly to UTF-16 according to
33+
the following conversion algorithm, assuming that the WebAssembly name is in a
34+
`Uint8Array` called `array`:
3335

3436
```
3537
function convertToJSString(array)

0 commit comments

Comments
 (0)