mirror of
https://github.com/tc39/test262.git
synced 2025-07-12 16:44:49 +02:00
11 lines
367 B
JavaScript
11 lines
367 B
JavaScript
// Copyright (C) 2017 Igalia, S. L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
description: Static private fields are not supported
|
|
features: [class, class-fields-private]
|
|
---*/
|
|
|
|
assert.throws.early(SyntaxError, "class C { static #field; }");
|
|
assert.throws.early(SyntaxError, "class C { static #field = 0; }");
|
|
|