summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/fields/numeric-fields.js
blob: 9bd8d4abcef1aa4ff27029cb0f903e0c26479eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Number field names.
class C {
    128 = class {};
}
assertEq(new C()[128].name, "128");

// Bigint field names.
class D {
    128n = class {};
}
assertEq(new D()[128].name, "128");

if (typeof reportCompare === "function")
  reportCompare(true, true);