1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16const s1 = "tes 17t" 18 19'\xA0\x66\x21\xY0' 20 21const badBin = 0bF0011101 22 230x0D00__0000 24 250o251042_ 26 27const �n1 = 0 28 29undef\u0xFF00\ned 30 31const c1 = c'' 32const c3 = c' 33const c2 = c'' 34 35const f1 = 1.00000000f1 36 37const f2 = 1.444444d444n 38 39'\u{43G}' 40 414.34e-1b0 42 43199__444440000 44 450x291n 46 47-1000000b 48 49`\251` 50 51const o1 = 0o0008 52 53\U4444 54 55const n2 = 0134 56const n2 = 0999 57const n3 = 0_01 58 59const n4 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 60const n5 = 02n 61 62# 63 64/* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 65/* @@? 16:16 Error SyntaxError: Unexpected token 'identification literal'. */ 66/* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 67/* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 68/* @@? 16:16 Error SyntaxError: Newline is not allowed in strings */ 69/* @@? 16:16 Error SyntaxError: Unexpected token 'string literal'. */ 70/* @@? 17:3 Error SyntaxError: Invalid unicode escape sequence */ 71/* @@? 19:19 Error SyntaxError: Invalid digit */ 72/* @@? 19:19 Error SyntaxError: Invalid numeric literal */ 73/* @@? 19:19 Error SyntaxError: Unexpected token 'identification literal'. */ 74/* @@? 21:26 Error SyntaxError: Invalid numeric separator */ 75/* @@? 21:26 Error SyntaxError: Invalid numeric separator */ 76/* @@? 21:26 Error SyntaxError: Invalid numeric separator */ 77/* @@? 23:13 Error SyntaxError: Numeric separators are not allowed at the end of numeric literals */ 78/* @@? 23:13 Error SyntaxError: Invalid numeric literal */ 79/* @@? 23:13 Error SyntaxError: Unexpected token 'identification literal'. */ 80/* @@? 25:10 Error SyntaxError: Expected an identifier */ 81/* @@? 27:14 Error SyntaxError: Invalid unicode escape sequence */ 82/* @@? 27:14 Error SyntaxError: Invalid identifier part */ 83/* @@? 27:14 Error SyntaxError: Invalid identifier part */ 84/* @@? 29:18 Error SyntaxError: Invalid character literal */ 85/* @@? 30:1 Error SyntaxError: Unterminated character literal */ 86/* @@? 30:1 Error SyntaxError: Unexpected token 'identification literal'. */ 87/* @@? 30:1 Error SyntaxError: Unsupported character literal */ 88/* @@? 32:14 Error SyntaxError: Invalid numeric literal */ 89/* @@? 34:1 Error SyntaxError: Invalid numeric literal */ 90/* @@? 34:1 Error SyntaxError: Unexpected token 'identification literal'. */ 91/* @@? 36:1 Error SyntaxError: Invalid unicode escape sequence */ 92/* @@? 36:1 Error SyntaxError: Invalid unicode escape sequence */ 93/* @@? 36:1 Error SyntaxError: Invalid unicode escape sequence */ 94/* @@? 38:1 Error SyntaxError: Invalid numeric literal */ 95/* @@? 38:1 Error SyntaxError: Unexpected token 'identification literal'. */ 96/* @@? 40:1 Error SyntaxError: Invalid numeric separator */ 97/* @@? 40:1 Error SyntaxError: Invalid numeric separator */ 98/* @@? 40:1 Error SyntaxError: Invalid numeric separator */ 99/* @@? 42:1 Error SyntaxError: Invalid BigInt number */ 100/* @@? 44:1 Error SyntaxError: Invalid numeric literal */ 101/* @@? 44:1 Error SyntaxError: Unexpected token 'identification literal'. */ 102/* @@? 46:1 Error SyntaxError: Invalid character escape sequence in strict mode */ 103/* @@? 46:1 Error SyntaxError: Octal escape sequences are not allowed in template strings */ 104/* @@? 48:1 Error SyntaxError: Invalid octal digit */ 105/* @@? 48:1 Error SyntaxError: Invalid numeric literal */ 106/* @@? 48:1 Error SyntaxError: Unexpected token 'number literal'. */ 107/* @@? 50:1 Error SyntaxError: Invalid character */ 108/* @@? 50:1 Error SyntaxError: Unexpected token 'identification literal'. */ 109/* @@? 52:1 Error SyntaxError: Implicit octal literal not allowed */ 110/* @@? 53:7 Error SyntaxError: NonOctalDecimalIntegerLiteral is not enabled in strict mode code */ 111/* @@? 54:1 Error SyntaxError: Numeric separator '_' is not allowed in numbers that start with '0'. */ 112/* @@? 56:16 Error SyntaxError: Number is too large */ 113/* @@? 56:16 Error SyntaxError: Unexpected token 'identification literal'. */ 114/* @@? 57:16 Error SyntaxError: Implicit octal literal not allowed */ 115/* @@? 57:16 Error SyntaxError: Invalid BigInt number */ 116/* @@? 59:60 Error SyntaxError: Unexpected token: '#'. */ 117