File tree 1 file changed +9
-7
lines changed 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ synchronous calling to and from JavaScript.
23
23
### Function Names
24
24
25
25
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 ` :
33
35
34
36
```
35
37
function convertToJSString(array)
You can’t perform that action at this time.
0 commit comments