File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1346,6 +1346,10 @@ Result WastParser::ParseElemModuleField(Module* module) {
13461346
13471347Result WastParser::ParseTagModuleField (Module* module ) {
13481348 WABT_TRACE (ParseTagModuleField);
1349+ if (!options_->features .exceptions_enabled ()) {
1350+ Error (Consume ().loc , " tag not allowed" );
1351+ return Result::Error;
1352+ }
13491353 EXPECT (Lpar);
13501354 EXPECT (Tag);
13511355 std::string name;
Original file line number Diff line number Diff line change 11;;; TOOL: run-objdump
2- ;;; ARGS0: -v
2+ ;;; ARGS0: -v --enable-exceptions
33;;; ARGS1: -x
44(module
55 (tag)
Original file line number Diff line number Diff line change 1+ ;;; TOOL: wat2wasm
2+ ;;; ERROR: 1
3+ (module
4+ (tag $e0 (param i32))
5+ )
6+
7+ (;; STDERR ;;;
8+ out/test/regress/regress-2110.txt:4:3: error: tag not allowed
9+ (tag $e0 (param i32))
10+ ^
11+ ;;; STDERR ;;)
You can’t perform that action at this time.
0 commit comments