|
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 * The Identifer within a FunctionDeclaration can be written in both letters and unicode |
|
6 * |
|
7 * @path ch14/14.0/S14_A5_T1.js |
|
8 * @description Declaring a function with "function __\u0066\u0075\u006e\u0063(){return "both"}" |
|
9 */ |
|
10 |
|
11 ////////////////////////////////////////////////////////////////////////////// |
|
12 //CHECK#1 |
|
13 if (__func() !== "both") { |
|
14 $ERROR('#1: __func() === "both". Actual: __func() ==='+ __func() ); |
|
15 } |
|
16 // |
|
17 ////////////////////////////////////////////////////////////////////////////// |
|
18 |
|
19 function __func(){return "ascii"}; |
|
20 function \u005f\u005f\u0066\u0075\u006e\u0063(){return "unicode"};//__func in unicode |
|
21 function __\u0066\u0075\u006e\u0063(){return "both"};//__func in unicode |
|
22 |