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

24 lines
488 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: Binary-integer-literal-like sequence without any digits
info: |
BinaryIntegerLiteral ::
0b BinaryDigits
0B BinaryDigits
BinaryDigits ::
BinaryDigit
BinaryDigits BinaryDigit
BinaryDigit :: one of
0 1
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
0b;