mirror of https://github.com/tc39/test262.git
23 lines
552 B
JavaScript
23 lines
552 B
JavaScript
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
esid: sec-switch-statement-static-semantics-early-errors
|
|
es6id: 13.12.1
|
|
description: Syntax error from duplicate lexical variables
|
|
info: >
|
|
It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any
|
|
duplicate entries.
|
|
negative:
|
|
phase: early
|
|
type: SyntaxError
|
|
features: [let, const]
|
|
---*/
|
|
|
|
switch (0) {
|
|
case 1:
|
|
let test262id;
|
|
break;
|
|
default:
|
|
const test262id = null;
|
|
}
|