chromium/third_party/blink/web_tests/inspector-protocol/resources/console-log-navigate-on-load.html

<script>
function navigate()
{
    anchor = document.createElement("a");
    anchor.href = "about:blank";
    anchor.click();
}
var a = new Date();
a.toString = () => navigate();
console.log(42, a);
</script>