From 62e2d1fa038ccf96bfd61a8a5864c7a9d5d45be6 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 24 Jul 2019 13:15:07 -0700 Subject: 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. --- src/wasm/wasm-validator.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/wasm/wasm-validator.cpp') 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, -- cgit v1.2.3