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

Function setArrayLength

builtin_array.go:33–36  ·  view source on GitHub ↗
(a *arrayObject, l int64)

Source from the content-addressed store, hash-verified

31}
32
33func setArrayLength(a *arrayObject, l int64) *arrayObject {
34 a.setOwnStr("length", intToValue(l), true)
35 return a
36}
37
38func arraySpeciesCreate(obj *Object, size int64) *Object {
39 if isArray(obj) {

Callers 2

newArrayLengthMethod · 0.85
builtin_newArrayMethod · 0.85

Calls 2

intToValueFunction · 0.85
setOwnStrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…