blob: 52354e8dd44ef8c9818443b22faded1633ad402a [file] [log] [blame]
description(
"This test checks exceptional cases for constant counting in the parser."
);
const a = 15;
const b = 25;
try {
--a;
--b;
} catch(e) { }
if (a !== 15)
testFailed("Unexpected result for 'a'");
else
testPassed("'a' is all good");
function f()
{
const a = 10;
const b = 20;
try {
} catch(e) {
a--;
b--;
}
return a;
}
shouldBe("f()", "10");