Skip to content
Snippets Groups Projects
Commit 56d6eefb authored by André Bargull's avatar André Bargull
Browse files

Fix expected completion value

- if-statement completion value semantics was not properly updated in ES2015
parent 77297535
Branches
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ supreme=5;
//CHECK#
try {
var __evaluated = eval("for(count=0;;) {if (count===supreme)break;else count++; }");
if (__evaluated !== 4) {
if (__evaluated !== void 0) {
$ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated );
}
} catch (e) {
......
......@@ -16,7 +16,7 @@ supreme=5;
//CHECK#
try {
var __evaluated = eval("for(var count=0;;) {if (count===supreme)break;else count++; }");
if (__evaluated !== 4) {
if (__evaluated !== void 0) {
$ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated );
}
} catch (e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment