S12.13_A2_T1.js (482B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 "throw Expression" returns (throw, GetValue(Result(1)), empty), where 1 7 evaluates Expression 8 es5id: 12.13_A2_T1 9 description: Throwing undefined 10 ---*/ 11 12 // CHECK#1 13 try{ 14 throw undefined; 15 } 16 catch(e){ 17 if (e!==undefined) throw new Test262Error('#1: Exception === undefined. Actual: Exception ==='+ e ); 18 } 19 20 reportCompare(0, 0);