Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/numeric/legacy-octal-integer-strict.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-additional-syntax-numeric-literals
5 description: LegacyOctalIntegerLiteral is not enabled in strict mode code
6 info: |
7 NumericLiteral ::
8 DecimalLiteral
9 BinaryIntegerLiteral
10 OctalIntegerLiteral
11 HexIntegerLiteral
12 LegacyOctalIntegerLiteral
13
14 LegacyOctalIntegerLiteral ::
15 0 OctalDigit
16 LegacyOctalIntegerLiteral OctalDigit
17 flags: [onlyStrict]
18 negative:
19 phase: parse
20 type: SyntaxError
21 ---*/
22
23 throw "Test262: This statement should not be evaluated.";
24
25 00;