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

Method next

string.go:260–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260func (i *stringPropIter) next() (propIterItem, iterNextFunc) {
261 if i.idx < i.length {
262 name := strconv.Itoa(i.idx)
263 i.idx++
264 return propIterItem{name: asciiString(name), enumerable: _ENUM_TRUE}, i.next
265 }
266
267 return i.obj.baseObject.iterateStringKeys()()
268}
269
270func (s *stringObject) iterateStringKeys() iterNextFunc {
271 return (&stringPropIter{

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
iterateStringKeysMethod · 0.65

Tested by

no test coverage detected