test262/test/language/literals/numeric/binary-invalid-digit.js

24 lines
498 B
JavaScript
Raw Normal View History

2015-06-12 20:36:02 +02:00
// 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: Binary-integer-literal-like sequence containing an invalid digit
info: |
2015-06-12 20:36:02 +02:00
BinaryIntegerLiteral ::
0b BinaryDigits
0B BinaryDigits
BinaryDigits ::
BinaryDigit
BinaryDigits BinaryDigit
BinaryDigit :: one of
0 1
negative:
phase: parse
type: SyntaxError
2015-06-12 20:36:02 +02:00
---*/
$DONOTEVALUATE();
2015-06-12 20:36:02 +02:00
0b2;