From 672574abd06338d8d23e40d15f27a2e50b97f573 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 3 Nov 2019 10:14:29 +0100 Subject: [PATCH] Rename anyfunc -> funcref --- src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java | 2 +- src/de/inetsoftware/jwebassembly/wasm/AnyType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java b/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java index 435b729..0a26fa1 100644 --- a/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java +++ b/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java @@ -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++ ) { diff --git a/src/de/inetsoftware/jwebassembly/wasm/AnyType.java b/src/de/inetsoftware/jwebassembly/wasm/AnyType.java index 2e62620..e2e5bf2 100644 --- a/src/de/inetsoftware/jwebassembly/wasm/AnyType.java +++ b/src/de/inetsoftware/jwebassembly/wasm/AnyType.java @@ -20,7 +20,7 @@ package de.inetsoftware.jwebassembly.wasm; *

  * numtype ::= i32 | i64 | f32 | f64
  * packedtype ::= i8 | i16
- * reftype ::= anyref | anyfunc | nullref
+ * reftype ::= anyref | funcref | nullref
  * valtype ::= numtype | reftype
  * deftype ::= functype | structtype | arraytype
  *