Skip to content
Snippets Groups Projects
Commit dbcd3881 authored by Leo Balter's avatar Leo Balter
Browse files

Remove duplicate of test/language/statements/class/fields-privatename-constructor-err.js

parent e25e53c0
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2017 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: static class fields forbid PropName 'prototype' (early error -- PropName of StringLiteral is forbidden value)
esid: sec-class-definitions-static-semantics-early-errors
features: [class, class-fields-private]
negative:
phase: parse
type: SyntaxError
info: |
ClassElementName : PrivateName;
It is a Syntax Error if StringValue of PrivateName is "#constructor".
---*/
throw "Test262: This statement should not be evaluated.";
class C {
#constructor;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment