mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 08:27:49 +00:00

PR-URL: https://github.com/nodejs/node/pull/54077 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
66 lines
1.6 KiB
Plaintext
66 lines
1.6 KiB
Plaintext
Test static private class accessors
|
|
|
|
Running test: testScopesPaused
|
|
private members on the base class
|
|
privateProperties from Runtime.getProperties()
|
|
[
|
|
[0] : {
|
|
name : #writeOnly
|
|
set : {
|
|
className : Function
|
|
description : set #writeOnly(val) { this.#field = val; }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
}
|
|
[1] : {
|
|
get : {
|
|
className : Function
|
|
description : get #readOnly() { return this.#field; }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
name : #readOnly
|
|
}
|
|
[2] : {
|
|
get : {
|
|
className : Function
|
|
description : get #accessor() { return this.#field; }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
name : #accessor
|
|
set : {
|
|
className : Function
|
|
description : set #accessor(val) { this.#field = val; }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
}
|
|
[3] : {
|
|
name : #field
|
|
value : {
|
|
description : 2
|
|
type : number
|
|
value : 2
|
|
}
|
|
}
|
|
]
|
|
[[PrivateMethods]] in internalProperties from Runtime.getProperties()
|
|
undefined
|
|
private members on the subclass
|
|
privateProperties from Runtime.getProperties()
|
|
[
|
|
[0] : {
|
|
get : {
|
|
className : Function
|
|
description : get #accessor() { return 'subclassAccessor'; }
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
name : #accessor
|
|
}
|
|
]
|
|
[[PrivateMethods]] in internalProperties from Runtime.getProperties()
|
|
undefined
|