summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/object/method-definition/name-super-call-param.js
blob: 6607a16dfb8ad20907317da78f2fdb07eaa0b228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |reftest| error:SyntaxError
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
esid: sec-object-initializer-static-semantics-early-errors
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

({
  method(param = super()) {}
});