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

Method getStringIteratorPrototype

builtin_string.go:1003–1011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1001}
1002
1003func (r *Runtime) getStringIteratorPrototype() *Object {
1004 var o *Object
1005 if o = r.global.StringIteratorPrototype; o == nil {
1006 o = &Object{runtime: r}
1007 r.global.StringIteratorPrototype = o
1008 o.self = r.createStringIterProto(o)
1009 }
1010 return o
1011}
1012
1013func createStringProtoTemplate() *objectTemplate {
1014 t := newObjectTemplate()

Callers 1

createStringIteratorMethod · 0.95

Calls 1

createStringIterProtoMethod · 0.95

Tested by

no test coverage detected