mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 12:36:48 +00:00
jsre: hide fields with prefix _ when pretty-printing
This makes web3 internals like _requestManager invisible.
This commit is contained in:
parent
f08680985a
commit
05e257c22c
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ func (ctx ppctx) fields(obj *otto.Object) []string {
|
||||||
seen = make(map[string]bool)
|
seen = make(map[string]bool)
|
||||||
)
|
)
|
||||||
add := func(k string) {
|
add := func(k string) {
|
||||||
if seen[k] || boringKeys[k] {
|
if seen[k] || boringKeys[k] || strings.HasPrefix(k, "_") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
seen[k] = true
|
seen[k] = true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue