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

Method baseObject

string_unicode.go:445–450  ·  view source on GitHub ↗
(r *Runtime)

Source from the content-addressed store, hash-verified

443}
444
445func (s unicodeString) baseObject(r *Runtime) *Object {
446 ss := r.getStringSingleton()
447 ss.value = s
448 ss.setLength()
449 return ss.val
450}
451
452func (s unicodeString) CharAt(idx int) uint16 {
453 return s[idx+1]

Callers

nothing calls this directly

Calls 2

getStringSingletonMethod · 0.80
setLengthMethod · 0.45

Tested by

no test coverage detected