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

Method init

array.go:74–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (a *arrayObject) init() {
75 a.baseObject.init()
76 a.lengthProp.writable = true
77
78 a._put("length", &a.lengthProp)
79}
80
81func (a *arrayObject) _setLengthInt(l uint32, throw bool) bool {
82 ret := true

Callers 3

BenchmarkArrayGetStrFunction · 0.95
BenchmarkArrayGetFunction · 0.95
BenchmarkArrayPutFunction · 0.95

Calls 2

initMethod · 0.65
_putMethod · 0.45

Tested by 3

BenchmarkArrayGetStrFunction · 0.76
BenchmarkArrayGetFunction · 0.76
BenchmarkArrayPutFunction · 0.76