@@ -724,47 +724,47 @@ TEST_F(WasmModuleVerifyTest, Exception_invalid_attribute) {
724
724
}
725
725
726
726
TEST_F (WasmModuleVerifyTest, ExceptionSectionCorrectPlacement) {
727
- static const byte data[] = {SECTION (Import , ENTRY_COUNT (0 )),
727
+ static const byte data[] = {SECTION (Memory , ENTRY_COUNT (0 )),
728
728
SECTION (Exception, ENTRY_COUNT (0 )),
729
- SECTION (Export , ENTRY_COUNT (0 ))};
729
+ SECTION (Global , ENTRY_COUNT (0 ))};
730
730
FAIL_IF_NO_EXPERIMENTAL_EH (data);
731
731
732
732
WASM_FEATURE_SCOPE (eh);
733
733
ModuleResult result = DecodeModule (data, data + sizeof (data));
734
734
EXPECT_OK (result);
735
735
}
736
736
737
- TEST_F (WasmModuleVerifyTest, ExceptionSectionAfterExport ) {
738
- static const byte data[] = {SECTION (Export , ENTRY_COUNT (0 )),
737
+ TEST_F (WasmModuleVerifyTest, ExceptionSectionAfterGlobal ) {
738
+ static const byte data[] = {SECTION (Global , ENTRY_COUNT (0 )),
739
739
SECTION (Exception, ENTRY_COUNT (0 ))};
740
740
FAIL_IF_NO_EXPERIMENTAL_EH (data);
741
741
742
742
WASM_FEATURE_SCOPE (eh);
743
743
ModuleResult result = DecodeModule (data, data + sizeof (data));
744
744
EXPECT_NOT_OK (result,
745
- " The Exception section must appear before the Export section" );
745
+ " The Exception section must appear before the Global section" );
746
746
}
747
747
748
- TEST_F (WasmModuleVerifyTest, ExceptionSectionBeforeGlobal ) {
748
+ TEST_F (WasmModuleVerifyTest, ExceptionSectionBeforeMemory ) {
749
749
static const byte data[] = {SECTION (Exception, ENTRY_COUNT (0 )),
750
- SECTION (Global , ENTRY_COUNT (0 ))};
750
+ SECTION (Memory , ENTRY_COUNT (0 ))};
751
751
FAIL_IF_NO_EXPERIMENTAL_EH (data);
752
752
753
753
WASM_FEATURE_SCOPE (eh);
754
754
ModuleResult result = DecodeModule (data, data + sizeof (data));
755
- EXPECT_NOT_OK (result, " unexpected section <Global >" );
755
+ EXPECT_NOT_OK (result, " unexpected section <Memory >" );
756
756
}
757
757
758
- TEST_F (WasmModuleVerifyTest, ExceptionSectionAfterMemoryBeforeGlobal ) {
758
+ TEST_F (WasmModuleVerifyTest, ExceptionSectionAfterTableBeforeMemory ) {
759
759
STATIC_ASSERT (kMemorySectionCode + 1 == kGlobalSectionCode );
760
- static const byte data[] = {SECTION (Memory , ENTRY_COUNT (0 )),
760
+ static const byte data[] = {SECTION (Table , ENTRY_COUNT (0 )),
761
761
SECTION (Exception, ENTRY_COUNT (0 )),
762
- SECTION (Global , ENTRY_COUNT (0 ))};
762
+ SECTION (Memory , ENTRY_COUNT (0 ))};
763
763
FAIL_IF_NO_EXPERIMENTAL_EH (data);
764
764
765
765
WASM_FEATURE_SCOPE (eh);
766
766
ModuleResult result = DecodeModule (data, data + sizeof (data));
767
- EXPECT_NOT_OK (result, " unexpected section <Global >" );
767
+ EXPECT_NOT_OK (result, " unexpected section <Memory >" );
768
768
}
769
769
770
770
TEST_F (WasmModuleVerifyTest, ExceptionImport) {
0 commit comments