Debian Codegraph @

js/src/tests/test262/language/literals/numeric/non-octal-decimal-integer-strict-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (C) 2016 the V8 project authors. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-literals-numeric-literals
7 description: NonOctalDecimalIntegerLiteral is not enabled in strict mode code
8 info: |
9 DecimalIntegerLiteral ::
10 0
11 NonZeroDigit DecimalDigits[opt]
12 NonOctalDecimalIntegerLiteral
13
14 NonOctalDecimalIntegerLiteral ::
15 0 NonOctalDigit
16 LegacyOctalLikeDecimalIntegerLiteral NonOctalDigit
17 NonOctalDecimalIntegerLiteral DecimalDigit
18
19 LegacyOctalLikeDecimalIntegerLiteral ::
20 0 OctalDigit
21 LegacyOctalLikeDecimalIntegerLiteral OctalDigit
22
23 NonOctalDigit :: one of
24 8 9
25
26 ## 12.8.3.1 Static Semantics: Early Errors
27
28 NumericLiteral :: LegacyOctalIntegerLiteral
29 DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral
30
31 - It is a Syntax Error if the source code matching this production is
32 strict mode code.
33 flags: [onlyStrict]
34 negative:
35 phase: parse
36 type: SyntaxError
37 ---*/
38
39 $DONOTEVALUATE();
40
41 08;