MCPcopy Create free account
hub / github.com/dop251/goja / stringKeys

Method stringKeys

proxy.go:1017–1026  ·  view source on GitHub ↗
(all bool, _ []Value)

Source from the content-addressed store, hash-verified

1015}
1016
1017func (p *proxyObject) stringKeys(all bool, _ []Value) []Value { // we can assume accum is empty
1018 var keys []Value
1019 if vals, ok := p.proxyOwnKeys(); ok {
1020 keys = vals
1021 } else {
1022 keys = p.target.self.stringKeys(true, nil)
1023 }
1024
1025 return p.filterKeys(keys, all, false)
1026}
1027
1028func (p *proxyObject) symbols(all bool, accum []Value) []Value {
1029 var symbols []Value

Callers 1

iterateStringKeysMethod · 0.95

Calls 3

proxyOwnKeysMethod · 0.95
filterKeysMethod · 0.95
stringKeysMethod · 0.65

Tested by

no test coverage detected