test262/test/language/statements/class/static-private-fields-unsupported.js

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; }");