diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/suite/ch12/12.10/12.10-2-4.js (renamed from test/suite/ch09/9.9/S9.9_A1.js) | 14 | ||||
-rw-r--r-- | test/suite/ch12/12.10/12.10-2-5.js (renamed from test/suite/ch09/9.9/S9.9_A2.js) | 14 |
2 files changed, 2 insertions, 26 deletions
diff --git a/test/suite/ch09/9.9/S9.9_A1.js b/test/suite/ch12/12.10/12.10-2-4.js index 4287efd3e..88be9f8ac 100644 --- a/test/suite/ch09/9.9/S9.9_A1.js +++ b/test/suite/ch12/12.10/12.10-2-4.js @@ -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)); diff --git a/test/suite/ch09/9.9/S9.9_A2.js b/test/suite/ch12/12.10/12.10-2-5.js index f62620423..19637500b 100644 --- a/test/suite/ch09/9.9/S9.9_A2.js +++ b/test/suite/ch12/12.10/12.10-2-5.js @@ -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)); |