chromium/third_party/blink/web_tests/fast/dom/script-module-inline-error-gc.html

<!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.