S14_A5_T1.js (873B)
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 The Identifier within a FunctionDeclaration can be written in both letters 7 and unicode 8 es5id: 14_A5_T1 9 description: > 10 Declaring a function with "function 11 __\u0066\u0075\u006e\u0063(){return "both"}" 12 ---*/ 13 14 ////////////////////////////////////////////////////////////////////////////// 15 //CHECK#1 16 if (__func() !== "both") { 17 throw new Test262Error('#1: __func() === "both". Actual: __func() ==='+ __func() ); 18 } 19 // 20 ////////////////////////////////////////////////////////////////////////////// 21 22 function __func(){return "ascii"}; 23 function \u005f\u005f\u0066\u0075\u006e\u0063(){return "unicode"};//__func in unicode 24 function __\u0066\u0075\u006e\u0063(){return "both"};//__func in unicode 25 26 reportCompare(0, 0);