25 lines
663 B
HTML
25 lines
663 B
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
<script src="../../resources/js-test-pre.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>
|
|
<script src="../../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|