22 lines
411 B
JavaScript
22 lines
411 B
JavaScript
description(
|
|
"Tests what would happen if you have a break in the finally block. The correct outcome is for this test to not crash during bytecompilation."
|
|
);
|
|
|
|
function foo() {
|
|
do {
|
|
do {} while (false);
|
|
|
|
try {
|
|
do {
|
|
return null;
|
|
} while (false);
|
|
} finally {
|
|
break;
|
|
}
|
|
} while (false);
|
|
}
|
|
|
|
foo();
|
|
testPassed("It worked.");
|
|
|