chromium/third_party/blink/web_tests/http/tests/devtools/console/resources/uncaught-in-iframe.html

<script>
window.addEventListener("load", function(e) {
    function f() {
        setTimeout(function() {
            function bar() {
                throw new Error("Exception in setTimeout callback.");
            }
            bar();
        }, 0);

        throw new Error("Exception in 'load' event listener.")
    }
    f();
}, false);

function a()
{
    throw new Error("Exception in inline script.")
}

function b()
{
    a();
}

b();
</script>