fix parameter order for struct.set polyfill

This commit is contained in:
Volker Berlin 2019-10-26 12:26:35 +02:00
parent 431d5f5a4a
commit 3c0199c000

View File

@ -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();