test262/test/language/statements/class/syntax/early-errors/class-definition-evaluation...

15 lines
382 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: 15.1.1
description: >
ScriptBody : StatementList
It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains any duplicate entries.
negative:
phase: early
type: SyntaxError
---*/
class A {}
class A {}