From 3c0199c0006ee924c129a02e252ad11b106e25ef Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sat, 26 Oct 2019 12:26:35 +0200 Subject: [PATCH] fix parameter order for struct.set polyfill --- .../inetsoftware/jwebassembly/module/WasmStructInstruction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java index 5a13f19..d922757 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java @@ -108,7 +108,7 @@ class WasmStructInstruction extends WasmInstruction { break; case SET: AnyType fieldType = fieldName.getType(); - functionName = new JavaScriptSyntheticFunctionName( "NonGC", "set_" + fieldType, () -> "(a,v,i) => a[i]=v", ValueType.anyref, ValueType.i32, fieldType, null, null ); + functionName = new JavaScriptSyntheticFunctionName( "NonGC", "set_" + fieldType, () -> "(a,v,i) => a[i]=v", ValueType.anyref, fieldType, ValueType.i32, null, null ); break; case GET: fieldType = fieldName.getType();