mirror of https://github.com/tc39/test262.git
16 lines
494 B
Plaintext
16 lines
494 B
Plaintext
// Copyright (C) 2018 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
desc: Accessor set Methods cannot be named "constructor"
|
|
info: |
|
|
Class Definitions / Static Semantics: Early Errors
|
|
|
|
ClassElement : MethodDefinition
|
|
It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true.
|
|
template: syntax/invalid
|
|
---*/
|
|
|
|
//- elements
|
|
set constructor(_) {}
|