blob: 739649bfa050bd23cc1208ae9a93fddf349f010b [file] [log] [blame]
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-method-definitions-static-semantics-early-errors
description: >
Throws an early SyntaxError if a method definition has a private name.
(ordinary method)
info: |
Static Semantics: Early Errors
PropertyDefinition : MethodDefinition
It is a Syntax Error if PrivateBoundNames of MethodDefinition is non-empty.
negative:
phase: parse
type: SyntaxError
features: [class-methods-private]
---*/
$DONOTEVALUATE();
var o = {
#m() {}
};