test262/test/language/literals/numeric/octal-invalid-leading.js

24 lines
491 B
JavaScript

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 11.8.3
description: Octal-integer-literal-like sequence with a leading 0
info: |
OctalIntegerLiteral ::
0o OctalDigits
0O OctalDigits
OctalDigits ::
OctalDigit
OctalDigits OctalDigit
OctalDigit :: one of
0 1 2 3 4 5 6 7
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
00o0;