mirror of https://github.com/tc39/test262.git
Fix expected completion value
- if-statement completion value semantics was not properly updated in ES2015
This commit is contained in:
parent
77297535af
commit
56d6eefb69
|
@ -16,7 +16,7 @@ supreme=5;
|
||||||
//CHECK#
|
//CHECK#
|
||||||
try {
|
try {
|
||||||
var __evaluated = eval("for(count=0;;) {if (count===supreme)break;else count++; }");
|
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 );
|
$ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated );
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ supreme=5;
|
||||||
//CHECK#
|
//CHECK#
|
||||||
try {
|
try {
|
||||||
var __evaluated = eval("for(var count=0;;) {if (count===supreme)break;else count++; }");
|
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 );
|
$ERROR('#1: __evaluated === 4. Actual: __evaluated ==='+ __evaluated );
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue