blob: bdb4460e5fffcc59995679946051255a02a51fd5 [file] [log] [blame]
<!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>