Skip to content

Commit d322e64

Browse files
committed
Fix tests/async/sync-streams.wast
1 parent 7786ead commit d322e64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/async/sync-streams.wast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
(local.set $bufp (i32.const 16))
3737
(i32.store (local.get $bufp) (i32.const 0x01234567))
3838
(local.set $ret (call $stream.write (local.get $tx) (local.get $bufp) (i32.const 4)))
39-
(if (i32.ne (i32.const 0x40 (; COMPLETED=0 | (4<<4) ;)) (local.get $ret))
39+
(if (i32.ne (i32.const 0x40 (; DROPPED=1 | (4<<4) ;)) (local.get $ret))
4040
(then unreachable))
4141

4242
(call $stream.drop-writable (local.get $tx))
@@ -53,11 +53,11 @@
5353
;; return immediately so that the caller can just call synchronously
5454
(call $task.return0)
5555

56-
;; (stream.read $tx $bufp 4) will block and, because called
56+
;; (stream.read $rx $bufp 4) will block and, because called
5757
;; synchronously, switch to the caller who will write and rendezvous
5858
(local.set $bufp (i32.const 16))
5959
(local.set $ret (call $stream.read (local.get $rx) (local.get $bufp) (i32.const 4)))
60-
(if (i32.ne (i32.const 0x40 (; COMPLETED=0 | (4<<4) ;)) (local.get $ret))
60+
(if (i32.ne (i32.const 0x40 (; DROPPED=1 | (4<<4) ;)) (local.get $ret))
6161
(then unreachable))
6262
(if (i32.ne (i32.const 0x89abcdef) (i32.load (local.get $bufp)))
6363
(then unreachable))
@@ -120,7 +120,7 @@
120120
;; $rx = $C.get()
121121
(local.set $rx (call $get))
122122

123-
;; (stream.read $tx $bufp 4) will succeed without blocking
123+
;; (stream.read $rx $bufp 4) will succeed without blocking
124124
(local.set $bufp (i32.const 20))
125125
(local.set $ret (call $stream.read (local.get $rx) (local.get $bufp) (i32.const 4)))
126126
(if (i32.ne (i32.const 0x40 (; COMPLETED=0 | (4<<4) ;)) (local.get $ret))

0 commit comments

Comments
 (0)