mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
23 lines
713 B
HTML
23 lines
713 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async (done) => {
|
|
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)");
|
|
done();
|
|
});
|
|
</script>
|