Rename anyfunc -> funcref

This commit is contained in:
Volker Berlin 2019-11-03 10:14:29 +01:00
parent 87039232eb
commit 672574abd0
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ public class TextModuleWriter extends ModuleWriter {
int count = functions.size();
String countStr = Integer.toString( count );
newline( output );
output.append( "(table " ).append( countStr ).append( ' ' ).append( countStr ).append( " anyfunc)" );
output.append( "(table " ).append( countStr ).append( ' ' ).append( countStr ).append( " funcref)" );
newline( output );
output.append( "(elem (i32.const 0) " );
for( int i = 0; i < count; i++ ) {

View File

@ -20,7 +20,7 @@ package de.inetsoftware.jwebassembly.wasm;
* <pre><code>
* numtype ::= i32 | i64 | f32 | f64
* packedtype ::= i8 | i16
* reftype ::= anyref | anyfunc | nullref
* reftype ::= anyref | funcref | nullref
* valtype ::= numtype | reftype
* deftype ::= functype | structtype | arraytype
*