Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/numeric/non-octal-decimal-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: NonOctalDecimalIntegerLiteral is not enabled in strict mode code
6 info: |
7 DecimalIntegerLiteral ::
8 0
9 NonZeroDigit DecimalDigits[opt]
10 NonOctalDecimalIntegerLiteral
11
12 NonOctalDecimalIntegerLiteral ::
13 0 NonOctalDigit
14 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit
15 NonOctalDecimalIntegerLiteral DecimalDigit
16
17 LegacyOctalLikeDecimalIntegerLiteral ::
18 0 OctalDigit
19 LegacyOctalLikeDecimalIntegerLiteral OctalDigit
20
21 NonOctalDigit :: one of
22 8 9
23 flags: [onlyStrict]
24 negative:
25 phase: parse
26 type: SyntaxError
27 ---*/
28
29 throw "Test262: This statement should not be evaluated.";
30
31 08;