Skip to content

Truly independent web browser

695 B
Raw Blame
<!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>