Skip to content
Snippets Groups Projects
Commit da465e73 authored by Brian Terlson's avatar Brian Terlson
Browse files

Move S9.9_A1/2 to proper locations

The with statement tests were novel, but the tests for
property accessors throwing errors for undefined & null
were duplicates with S11.2.1_A3_T4/5 respectively.
parent bf9830ee
No related branches found
No related tags found
No related merge requests found
......@@ -3,23 +3,11 @@
/*---
info: ToObject conversion from undefined value must throw TypeError
es5id: 9.9_A1
es5id: 12.10-2-4
description: Trying to convert undefined to Object
flags: [noStrict]
---*/
// CHECK#1
try{
undefined['foo'];
$ERROR('#1.1: undefined[\'foo\'] must throw TypeError. Actual: ' + (undefined['foo']));
}
catch(e){
if((e instanceof TypeError) !== true){
$ERROR('#1.2: undefined[\'foo\'] must throw TypeError. Actual: ' + (e));
}
}
// CHECK#2
try{
with(undefined) x = 2;
$ERROR('#2.1: with(undefined) x = 2 must throw TypeError. Actual: x === ' + (x));
......
......@@ -3,23 +3,11 @@
/*---
info: ToObject conversion from null value must throw TypeError
es5id: 9.9_A2
es5id: 12.10-2-5
description: Trying to convert null to Object
flags: [noStrict]
---*/
// CHECK#1
try{
null['foo'];
$ERROR('#1.1: null[\'foo\'] throw TypeError. Actual: ' + (null['foo']));
}
catch(e){
if((e instanceof TypeError) !== true){
$ERROR('#1.2: null[\'foo\'] must throw TypeError. Actual: ' + (e));
}
}
// CHECK#2
try{
with(null) x = 2;
$ERROR('#2.1: with(null) x = 2 must throw TypeError. Actual: x === . Actual: ' + (x));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment