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

Method newArrayLength

builtin_array.go:72–74  ·  view source on GitHub ↗
(l int64)

Source from the content-addressed store, hash-verified

70}
71
72func (r *Runtime) newArrayLength(l int64) *Object {
73 return setArrayLength(r.newArrayObject(), l).val
74}
75
76func (r *Runtime) builtin_newArray(args []Value, proto *Object) *Object {
77 l := len(args)

Callers 5

builtin_newArrayMethod · 0.95
arrayproto_withMethod · 0.95
arrayproto_toReversedMethod · 0.95
arrayproto_toSplicedMethod · 0.95
arraySpeciesCreateFunction · 0.80

Calls 2

newArrayObjectMethod · 0.95
setArrayLengthFunction · 0.85

Tested by

no test coverage detected