S14_A5_T2.js (819B)
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_T2 9 description: > 10 Declaring a function with "function 11 \u005f\u005f\u0066\u0075\u006e\u0063(){return "unicode"}" 12 ---*/ 13 14 ////////////////////////////////////////////////////////////////////////////// 15 //CHECK#1 16 if (__func() !== "unicode") { 17 throw new Test262Error('#1: __func() === "unicode". 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 25 reportCompare(0, 0);