Skip to content

Commit 4e586f9

Browse files
committed
Fix returning null from commands
We want returning null to map onto an empty result. We could do this explicitly per command, but it's less verbose to just allow null at the top level.
1 parent fa58031 commit 4e586f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,8 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
797797

798798
1. Let |value| be |result|'s data.
799799

800+
1. If |value| is null, set |value| to an empty map.
801+
800802
1. Assert: |value| matches the definition for the [=result type=]
801803
corresponding to the command with [=command name=] |method|.
802804

0 commit comments

Comments
 (0)