mirror of https://github.com/tc39/test262.git
This commit is contained in:
parent
b9bd140cef
commit
0317028e15
|
@ -87,8 +87,6 @@
|
|||
<test id="S15.9.3.1_A5_T6">https://bugs.ecmascript.org/show_bug.cgi?id=11</test>
|
||||
-->
|
||||
|
||||
<test id="S9.9_A1">https://bugs.ecmascript.org/show_bug.cgi?id=13</test>
|
||||
<test id="S9.9_A2">https://bugs.ecmascript.org/show_bug.cgi?id=13</test>
|
||||
<test id="S11.1.5_A4.1">https://bugs.ecmascript.org/show_bug.cgi?id=14</test>
|
||||
<test id="S11.1.5_A4.2">https://bugs.ecmascript.org/show_bug.cgi?id=14</test>
|
||||
|
||||
|
|
|
@ -30,25 +30,3 @@ catch(e){
|
|||
$ERROR('#2.2: with(undefined) x = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
||||
// CHECK#3
|
||||
try{
|
||||
for(var y in undefined) y = 2;
|
||||
$ERROR('#3.1: for(var y in undefined) y = 2 must throw TypeError. Actual: y === ' + (y));
|
||||
}
|
||||
catch(e){
|
||||
if((e instanceof TypeError) !== true){
|
||||
$ERROR('#3.2: for(var y in undefined) y = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
||||
// CHECK#4
|
||||
try{
|
||||
for(var z in this.foo) z = 2;
|
||||
$ERROR('#4.1: for(var z in this.foo) z = 2 must throw TypeError. Actual: z === ' + (z));
|
||||
}
|
||||
catch(e){
|
||||
if((e instanceof TypeError) !== true){
|
||||
$ERROR('#4.2: for(var z in this.foo) z = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,25 +30,3 @@ catch(e){
|
|||
$ERROR('#2.2: with(null) x = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
||||
// CHECK#3
|
||||
try{
|
||||
for(var y in null) y = 2;
|
||||
$ERROR('#3.1: for(var y in null) y = 2 must throw TypeError. Actual: y === . Actual: ' + (y));
|
||||
}
|
||||
catch(e){
|
||||
if((e instanceof TypeError) !== true){
|
||||
$ERROR('#3.2: for(var y in null) y = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
||||
// CHECK#4
|
||||
try{
|
||||
for(var z in 'bbb'.match(/aaa/)) z = 2;
|
||||
$ERROR('#4.1: for(var z in \'bbb\'.match(/aaa/)) z = 2 must throw TypeError. Actual: z === . Actual: ' + (z));
|
||||
}
|
||||
catch(e){
|
||||
if((e instanceof TypeError) !== true){
|
||||
$ERROR('#4.2: for(var z in \'bbb\'.match(/aaa/)) z = 2 must throw TypeError. Actual: ' + (e));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue