chromium/third_party/blink/web_tests/fast/js/toString-try-else.html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>

    description(
    "This test checks that toString() round-trip on a function that has a else clause directly \
    followed by an else clause puts whitespace between the two on decompilation."
    );


    function testTryElse() { if (x) {} else try {} finally {} }

    unevalf = function(x) { return '(' + x.toString() + ')'; };
    
    // Test round trip.
    shouldBe("unevalf(eval(unevalf(testTryElse)))", "unevalf(testTryElse)");
</script>
</body>
</html>