Fix expected completion value

- if-statement completion value semantics was not properly updated in ES2015
This commit is contained in:
André Bargull 2015-11-11 17:47:15 +01:00
parent 77297535af
commit 56d6eefb69
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {