mirror of
https://github.com/tc39/test262.git
synced 2025-07-12 16:44:49 +02:00
12 lines
500 B
JavaScript
12 lines
500 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 public fields are not supported
|
|
features: [class, class-fields-public]
|
|
---*/
|
|
|
|
assert.throws.early(SyntaxError, "class C { static field; }");
|
|
assert.throws.early(SyntaxError, "class C { static field = 0; }");
|
|
assert.throws.early(SyntaxError, "class C { static ['field']; }");
|
|
assert.throws.early(SyntaxError, "class C { static ['field'] = 0; }");
|