<!doctype html> | |
<head> | |
<title>Test that module script compile -> V8 GC -> module script exec doesn't crash renderer</title> | |
<body> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.waitUntilDone(); | |
} | |
</script> | |
<script type="module"> | |
%syntax error | |
</script> | |
<script> | |
gc(); | |
window.requestAnimationFrame(() => { | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
}); | |
</script> | |
<p>This test pass if no crash. |