Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
74
func
(a *arrayObject) init() {
75
a.baseObject.init()
76
a.lengthProp.writable = true
77
78
a._put(
"length"
, &a.lengthProp)
79
}
80
81
func
(a *arrayObject) _setLengthInt(l uint32, throw bool) bool {
82
ret := true
Callers
3
BenchmarkArrayGetStr
Function · 0.95
BenchmarkArrayGet
Function · 0.95
BenchmarkArrayPut
Function · 0.95
Calls
2
init
Method · 0.65
_put
Method · 0.45
Tested by
3
BenchmarkArrayGetStr
Function · 0.76
BenchmarkArrayGet
Function · 0.76
BenchmarkArrayPut
Function · 0.76