Truly independent web browser
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
promiseTest(async () => {
const testCases = [
"AGFzbQEAAAAJEhAAHwAABQ==", // Structured else has argument type that isn't StructuredInstructionArgs
"AGFzbQEAAAANAwEABA==", // Type index in tag section is out of bounds
];
for (const testCase of testCases) {
try {
await WebAssembly.instantiate(Uint8Array.fromBase64(testCase));
println("FAIL! Test case unexpectedly instantiated.");
} catch (e) {
println(e.toString());
}
}
println("PASS! (Didn't crash)");
});
</script>