diff options
-rw-r--r-- | src/wast-parser.cc | 3 | ||||
-rw-r--r-- | test/parse/func/bad-local-binding-no-type.txt | 2 | ||||
-rw-r--r-- | test/parse/func/bad-local-binding.txt | 2 | ||||
-rw-r--r-- | test/parse/func/bad-param-binding.txt | 2 | ||||
-rw-r--r-- | test/parse/module/bad-array-no-fields.txt | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc index 7da3797a..89ba7b6b 100644 --- a/src/wast-parser.cc +++ b/src/wast-parser.cc @@ -904,7 +904,8 @@ Result WastParser::ParseValueType(Var* out_type) { const bool is_value_type = PeekMatch(TokenType::ValueType); if (!is_value_type && !is_ref_type) { - return ErrorExpected({"i32", "i64", "f32", "f64", "v128", "externref"}); + return ErrorExpected( + {"i32", "i64", "f32", "f64", "v128", "externref", "funcref"}); } if (is_ref_type) { diff --git a/test/parse/func/bad-local-binding-no-type.txt b/test/parse/func/bad-local-binding-no-type.txt index 371205f3..599a20cd 100644 --- a/test/parse/func/bad-local-binding-no-type.txt +++ b/test/parse/func/bad-local-binding-no-type.txt @@ -2,7 +2,7 @@ ;;; ERROR: 1 (module (func (local $n))) (;; STDERR ;;; -out/test/parse/func/bad-local-binding-no-type.txt:3:24: error: unexpected token ")", expected i32, i64, f32, f64, v128 or externref. +out/test/parse/func/bad-local-binding-no-type.txt:3:24: error: unexpected token ")", expected i32, i64, f32, f64, v128, externref or funcref. (module (func (local $n))) ^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-binding.txt b/test/parse/func/bad-local-binding.txt index 2a70cd84..8e99be47 100644 --- a/test/parse/func/bad-local-binding.txt +++ b/test/parse/func/bad-local-binding.txt @@ -2,7 +2,7 @@ ;;; ERROR: 1 (module (func (local $foo $bar))) (;; STDERR ;;; -out/test/parse/func/bad-local-binding.txt:3:27: error: unexpected token "$bar", expected i32, i64, f32, f64, v128 or externref. +out/test/parse/func/bad-local-binding.txt:3:27: error: unexpected token "$bar", expected i32, i64, f32, f64, v128, externref or funcref. (module (func (local $foo $bar))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param-binding.txt b/test/parse/func/bad-param-binding.txt index 9f91b1bb..f4d830e2 100644 --- a/test/parse/func/bad-param-binding.txt +++ b/test/parse/func/bad-param-binding.txt @@ -2,7 +2,7 @@ ;;; ERROR: 1 (module (func (param $bar $baz))) (;; STDERR ;;; -out/test/parse/func/bad-param-binding.txt:3:27: error: unexpected token "$baz", expected i32, i64, f32, f64, v128 or externref. +out/test/parse/func/bad-param-binding.txt:3:27: error: unexpected token "$baz", expected i32, i64, f32, f64, v128, externref or funcref. (module (func (param $bar $baz))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-array-no-fields.txt b/test/parse/module/bad-array-no-fields.txt index c1bbe268..90a5f222 100644 --- a/test/parse/module/bad-array-no-fields.txt +++ b/test/parse/module/bad-array-no-fields.txt @@ -3,7 +3,7 @@ ;;; ERROR: 1 (type (array)) (;; STDERR ;;; -out/test/parse/module/bad-array-no-fields.txt:4:13: error: unexpected token ")", expected i32, i64, f32, f64, v128 or externref. +out/test/parse/module/bad-array-no-fields.txt:4:13: error: unexpected token ")", expected i32, i64, f32, f64, v128, externref or funcref. (type (array)) ^ ;;; STDERR ;;) |