chromium/chrome/test/data/handles_error_script.html

<html>
    <p id="foo"></p>
    <script>
        try {
          throw new Error("A new Error");
        }
        catch(err) {
          document.getElementById("foo").innerHTML = err.message;
        }
    </script>
</html>