summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Function/prototype/toString/private-static-method-class-statement.js
blob: 5f3d97b0dc0434ae2f19f66dae2af1c7d677db13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2019 Kubilay Kahveci (Bloomberg LP). All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: Function.prototype.toString on a static private method
features: [class-static-methods-private]
includes: [nativeFunctionMatcher.js]
---*/

class C {
  /* before */static #f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */
  static assert(expected) {
    assertToStringOrNativeFunction(this.#f, expected);
  }
}

C.assert("#f /* a */ ( /* b */ ) /* c */ { /* d */ }");

reportCompare(0, 0);