(all bool, accum []Value)
| 248 | } |
| 249 | |
| 250 | func (d *destructKeyedSource) stringKeys(all bool, accum []Value) []Value { |
| 251 | var next iterNextFunc |
| 252 | if all { |
| 253 | next = d.iterateStringKeys() |
| 254 | } else { |
| 255 | next = (&enumerableIter{ |
| 256 | o: d.wrapped.ToObject(d.r), |
| 257 | wrapped: d.iterateStringKeys(), |
| 258 | }).next |
| 259 | } |
| 260 | for item, next := next(); next != nil; item, next = next() { |
| 261 | accum = append(accum, item.name) |
| 262 | } |
| 263 | return accum |
| 264 | } |
| 265 | |
| 266 | func (d *destructKeyedSource) filterUsedKeys(keys []Value) []Value { |
| 267 | k := 0 |
nothing calls this directly
no test coverage detected