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

Function setArrayValues

builtin_array.go:26–31  ·  view source on GitHub ↗
(a *arrayObject, values []Value)

Source from the content-addressed store, hash-verified

24}
25
26func setArrayValues(a *arrayObject, values []Value) *arrayObject {
27 a.values = values
28 a.length = uint32(len(values))
29 a.objCount = len(values)
30 return a
31}
32
33func setArrayLength(a *arrayObject, l int64) *arrayObject {
34 a.setOwnStr("length", intToValue(l), true)

Callers 8

newArrayValuesMethod · 0.85
builtin_newArrayMethod · 0.85
arrayproto_sliceMethod · 0.85
arrayproto_spliceMethod · 0.85
arrayproto_mapMethod · 0.85
arrayproto_filterMethod · 0.85
array_fromMethod · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…