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

Method createArrayIterProto

builtin_array.go:1714–1721  ·  view source on GitHub ↗
(val *Object)

Source from the content-addressed store, hash-verified

1712}
1713
1714func (r *Runtime) createArrayIterProto(val *Object) objectImpl {
1715 o := newBaseObjectObj(val, r.getIteratorPrototype(), classObject)
1716
1717 o._putProp("next", r.newNativeFunc(r.arrayIterProto_next, "next", 0), true, false, true)
1718 o._putSym(SymToStringTag, valueProp(asciiString(classArrayIterator), false, false, true))
1719
1720 return o
1721}
1722
1723func (r *Runtime) getArrayValues() *Object {
1724 ret := r.global.arrayValues

Callers 1

Calls 7

getIteratorPrototypeMethod · 0.95
newNativeFuncMethod · 0.95
newBaseObjectObjFunction · 0.85
valuePropFunction · 0.85
asciiStringTypeAlias · 0.85
_putPropMethod · 0.65
_putSymMethod · 0.65

Tested by

no test coverage detected