From b1a764277384880eafb776ef4c3e578b44459d93 Mon Sep 17 00:00:00 2001 From: Syrus Date: Fri, 1 Feb 2019 14:00:07 -0800 Subject: [PATCH] Fixed immutable globals assertion --- lib/clif-backend/src/module_env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clif-backend/src/module_env.rs b/lib/clif-backend/src/module_env.rs index 9b3cb171d..74e730693 100644 --- a/lib/clif-backend/src/module_env.rs +++ b/lib/clif-backend/src/module_env.rs @@ -122,7 +122,7 @@ impl<'module, 'isa, 'data> ModuleEnvironment<'data> for ModuleEnv<'module, 'isa> Initializer::Const(Value::F64(f64::from_bits(x))) } cranelift_wasm::GlobalInit::GetGlobal(global_index) => { - assert!(!desc.mutable); + // assert!(!desc.mutable); let global_index: GlobalIndex = Converter(global_index).into(); let imported_global_index = global_index .local_or_import(self.module)