summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/syntax/class-method-propname-constructor.js
blob: 36688dd52e86f99e267a0f7e0e984b25f1ffeebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.5.1
description: >
    The opposite of:

      ClassBody : ClassElementList

      It is a Syntax Error if PrototypePropertyNameList of ClassElementList contains more than one occurrence of "constructor".
---*/
class A {
  constructor() {}
}

assert.sameValue(typeof A, "function");


reportCompare(0, 0);