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

Method SetLen

object_dynamic.go:60–60  ·  view source on GitHub ↗

SetLen is called when the array's 'length' property is changed. If the length is increased all elements in the 'new' section of the array should be zeroed.

(int)

Source from the content-addressed store, hash-verified

58 // SetLen is called when the array's 'length' property is changed. If the length is increased all elements in the
59 // 'new' section of the array should be zeroed.
60 SetLen(int) bool
61}
62
63type baseDynamicObject struct {

Callers 3

growMethod · 0.65
shrinkMethod · 0.65
_setLenMethod · 0.65

Implementers 2

testDynArrayobject_dynamic_test.go
testSharedDynArrayobject_dynamic_test.go

Calls

no outgoing calls

Tested by

no test coverage detected