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

Method next

object_dynamic.go:474–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472}
473
474func (i *dynamicObjectPropIter) next() (propIterItem, iterNextFunc) {
475 for i.idx < len(i.propNames) {
476 name := i.propNames[i.idx]
477 i.idx++
478 if i.o.d.Has(name) {
479 return propIterItem{name: newStringValue(name), enumerable: _ENUM_TRUE}, i.next
480 }
481 }
482 return propIterItem{}, nil
483}
484
485func (o *dynamicObject) iterateStringKeys() iterNextFunc {
486 keys := o.d.Keys()

Callers

nothing calls this directly

Calls 2

newStringValueFunction · 0.85
HasMethod · 0.65

Tested by

no test coverage detected