File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ address ::= i32 | i64
195195Such instructions also take the memory to which to read or write as an
196196immediate.
197197
198+ Although ` stringref ` is a nullable type, trap if a null ` stringref `
199+ value reaches any instruction in this proposal. The one exception is
200+ ` string.eq ` .
201+
198202### Creating strings
199203
200204```
@@ -344,8 +348,9 @@ If an allocation fails, the implementation must trap. Fallible
344348```
345349(string.eq a:stringref b:stringref) -> i32
346350```
347- Return 1 if the strings * ` a ` * and * ` b ` * contain the same codepoint
348- sequence. Return 0 otherwise.
351+ If both * ` a ` * and * ` b ` * are null, return 1. If only one of them is
352+ null, return 0. Otherwise return 1 if the strings * ` a ` * and * ` b ` *
353+ contain the same codepoint sequence, or 0 otherwise.
349354
350355```
351356(string.is_usv_sequence str:stringref)
You can’t perform that action at this time.
0 commit comments