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

Method setForeignIdx

string.go:231–233  ·  view source on GitHub ↗
(idx valueInt, val, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

229}
230
231func (s *stringObject) setForeignIdx(idx valueInt, val, receiver Value, throw bool) (bool, bool) {
232 return s._setForeignIdx(idx, s.getOwnPropIdx(idx), val, receiver, throw)
233}
234
235func (s *stringObject) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool {
236 if i := strToGoIdx(name); i >= 0 && i < s.length {

Callers

nothing calls this directly

Calls 2

getOwnPropIdxMethod · 0.95
_setForeignIdxMethod · 0.80

Tested by

no test coverage detected