name-unicode.js (653B)
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: Unicode symbols in function name are allowed 6 es5id: 13_A14 7 description: Defining function name with unicode symbols 8 ---*/ 9 10 var funcA = eval("function __func\u0041(__arg){return __arg;}; __funcA"); 11 12 ////////////////////////////////////////////////////////////////////////////// 13 //CHECK#1 14 if (typeof funcA !== "function") { 15 throw new Test262Error('#1: unicode symbols in function name are allowed'); 16 } 17 // 18 ////////////////////////////////////////////////////////////////////////////// 19 20 reportCompare(0, 0);