mirror of
https://github.com/tc39/test262.git
synced 2025-07-02 03:34:37 +02:00
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#
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user