@@ -9,8 +9,6 @@ open Source
99let harness =
1010 " 'use strict';\n " ^
1111 " \n " ^
12- " let hard_validate = " ^ string_of_bool ! Flags. checked ^ " ;\n " ^
13- " \n " ^
1412 " let spectest = {\n " ^
1513 " print: print || ((...xs) => console.log(...xs)),\n " ^
1614 " global: 666,\n " ^
@@ -37,7 +35,7 @@ let harness =
3735 " } catch (e) {\n " ^
3836 " throw new Error(\" Wasm validate throws\" );\n " ^
3937 " }\n " ^
40- " if (validated !== valid && valid !== null ) {\n " ^
38+ " if (validated !== valid) {\n " ^
4139 " throw new Error(\" Wasm validate failure\" + " ^
4240 " (valid ? \"\" : \" expected\" ));\n " ^
4341 " }\n " ^
@@ -78,14 +76,6 @@ let harness =
7876 " throw new Error(\" Wasm validation failure expected\" );\n " ^
7977 " }\n " ^
8078 " \n " ^
81- " function assert_soft_invalid(bytes) {\n " ^
82- " try { module(bytes, hard_validate ? false : null) } catch (e) {\n " ^
83- " if (e instanceof WebAssembly.CompileError) return;\n " ^
84- " }\n " ^
85- " if (hard_validate)\n " ^
86- " throw new Error(\" Wasm validation failure expected\" );\n " ^
87- " }\n " ^
88- " \n " ^
8979 " function assert_unlinkable(bytes) {\n " ^
9080 " let mod = module(bytes);\n " ^
9181 " try { new WebAssembly.Instance(mod, registry) } catch (e) {\n " ^
@@ -330,8 +320,6 @@ let of_assertion mods ass =
330320 " assert_malformed(" ^ of_definition def ^ " );"
331321 | AssertInvalid (def , _ ) ->
332322 " assert_invalid(" ^ of_definition def ^ " );"
333- | AssertSoftInvalid (def , _ ) ->
334- " assert_soft_invalid(" ^ of_definition def ^ " );"
335323 | AssertUnlinkable (def , _ ) ->
336324 " assert_unlinkable(" ^ of_definition def ^ " );"
337325 | AssertUninstantiable (def , _ ) ->
0 commit comments