vals-cjk-escaped.js (1027B)
1 // Copyright (C) 2019 Student Main. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 info: | 5 IdentifierName and ReservedWord are tokens that are interpreted according to the 6 Default Identifier Syntax given in Unicode Standard Annex #31, 7 Identifier and Pattern Syntax, with some small modifications. 8 esid: sec-names-and-keywords 9 description: Check CJK UNIFIED IDEOGRAPH range is correct. 10 ---*/ 11 12 // CJK UNIFIED IDEOGRAPH 4e00-9fff 13 // u4e00 14 var \u4e00 = 1; 15 assert.sameValue(一, 1); 16 17 // u6c5f, check parser included all CJK range not only first and last 18 var \u6c5f = 1; 19 assert.sameValue(江, 1); 20 21 // u9fa5, last character in CJK UNIFIED IDEOGRAPH as for 2019 22 var \u9fa5 = 1; 23 assert.sameValue(龥, 1); 24 25 // CJK UNIFIED IDEOGRAPH EXTENDED A 3400-4dbf 26 // u3400 27 var \u3400 = 1; 28 assert.sameValue(㐀, 1); 29 30 // u362e 31 var \u362e = 1; 32 assert.sameValue(㘮, 1); 33 34 // u4db5, last in CJK UNIFIED IDEOGRAPH EXTENDED A 35 var \u4db5 = 1; 36 assert.sameValue(䶵, 1); 37 38 reportCompare(0, 0);