Skip to content

Commit e7c0179

Browse files
committed
Testing class definition with a static field called 'name' or 'length'.
1 parent ae96351 commit e7c0179

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2022, 2022, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
*/
7+
8+
load('assert.js');
9+
10+
class C { static name = 'foo'; }
11+
assertSame('foo', C.name);
12+
13+
class D { static length = 42; }
14+
assertSame(42, D.length);

0 commit comments

Comments
 (0)