summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-24 13:15:07 -0700
committerGitHub <noreply@github.com>2019-07-24 13:15:07 -0700
commit62e2d1fa038ccf96bfd61a8a5864c7a9d5d45be6 (patch)
tree8f3208aefbd1710b54cddc42f03f70c9247d944e /src/wasm/wasm-validator.cpp
parenta2741b360b444a26cd87327a3d60a601bb33119f (diff)
downloadbinaryen-62e2d1fa038ccf96bfd61a8a5864c7a9d5d45be6.tar.gz
binaryen-62e2d1fa038ccf96bfd61a8a5864c7a9d5d45be6.tar.bz2
binaryen-62e2d1fa038ccf96bfd61a8a5864c7a9d5d45be6.zip
Allow 0-value events (#2256)
Before I disallowed events with no values, but spec does not say anything about it, so I think that restriction is not necessary.
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index 372c5bf6d..73731d3e5 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -1943,9 +1943,6 @@ static void validateEvents(Module& module, ValidationInfo& info) {
FunctionType* ft = module.getFunctionType(curr->type);
info.shouldBeEqual(
ft->result, none, curr->name, "Event type's result type should be none");
- info.shouldBeTrue(!curr->params.empty(),
- curr->name,
- "There should be 1 or more values in an event type");
info.shouldBeEqual(curr->attribute,
(unsigned)0,
curr->attribute,