S12.13_A3_T2.js (642B)
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: 1. Evaluate Expression 6 es5id: 12.13_A3_T2 7 description: Evaluating string expression 8 ---*/ 9 10 // CHECK#1 11 try{ 12 throw "exception"+" #1"; 13 } 14 catch(e){ 15 if (e!=="exception #1") throw new Test262Error('#1: Exception === "exception #1"(operaton +). Actual: Exception ==='+ e ); 16 } 17 18 // CHECK#2 19 var b="exception" 20 var a=" #1"; 21 try{ 22 throw b+a; 23 } 24 catch(e){ 25 if (e!=="exception #1") throw new Test262Error('#2: Exception === "exception #1"(operaton +). Actual: Exception ==='+ e ); 26 } 27 28 reportCompare(0, 0);