mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 11:36:57 +00:00

PR-URL: https://github.com/nodejs/node/pull/32831 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
29 lines
1006 B
Plaintext
29 lines
1006 B
Plaintext
Check static private methods in object preview.
|
|
|
|
Running test: testPrivateMethods
|
|
expression: class { static get #readOnly() { return 1; } }
|
|
{
|
|
type : string
|
|
value : class { static get #readOnly() { return 1; } }
|
|
}
|
|
expression: class { static set #writeOnly(val) { } }
|
|
{
|
|
type : string
|
|
value : class { static set #writeOnly(val) { } }
|
|
}
|
|
expression: class { static #method() { return 1; } static get #accessor() { } static set #accessor(val) { } }
|
|
{
|
|
type : string
|
|
value : class { static #method() { return 1; } static get #accessor() { } static set #accessor(val) { } }
|
|
}
|
|
expression: class extends class { } { static #method() { return 1; } }
|
|
{
|
|
type : string
|
|
value : class extends class { } { static #method() { return 1; } }
|
|
}
|
|
expression: class extends class { static #method() { return 1; } } { get #accessor() { } set #accessor(val) { } }
|
|
{
|
|
type : string
|
|
value : class extends class { static #method() { return 1; } } { get #accessor() { } set #accessor(val) { } }
|
|
}
|