From ba0a6541885d324b9562a79a8977ed8733191b7f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 19 Sep 2016 17:18:59 -0700 Subject: globals mutability fixes --- src/wasm-validator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-validator.h') diff --git a/src/wasm-validator.h b/src/wasm-validator.h index 1d3b5c41b..6c6792228 100644 --- a/src/wasm-validator.h +++ b/src/wasm-validator.h @@ -335,7 +335,7 @@ public: } void visitGlobal(Global* curr) { - shouldBeTrue(curr->init->is(), curr->name, "global init must be valid"); + shouldBeTrue(curr->init->is() || curr->init->is(), curr->name, "global init must be valid"); shouldBeEqual(curr->type, curr->init->type, nullptr, "global init must have correct type"); } -- cgit v1.2.3