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

Method setForeignIdx

array.go:271–273  ·  view source on GitHub ↗
(idx valueInt, val, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

269}
270
271func (a *arrayObject) setForeignIdx(idx valueInt, val, receiver Value, throw bool) (bool, bool) {
272 return a._setForeignIdx(idx, a.getOwnPropIdx(idx), val, receiver, throw)
273}
274
275func (a *arrayObject) setForeignStr(name unistring.String, val, receiver Value, throw bool) (bool, bool) {
276 return a._setForeignStr(name, a.getOwnPropStr(name), val, receiver, throw)

Callers

nothing calls this directly

Calls 2

getOwnPropIdxMethod · 0.95
_setForeignIdxMethod · 0.80

Tested by

no test coverage detected