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

Method arrayproto_push

builtin_array.go:112–115  ·  view source on GitHub ↗
(call FunctionCall)

Source from the content-addressed store, hash-verified

110}
111
112func (r *Runtime) arrayproto_push(call FunctionCall) Value {
113 obj := call.This.ToObject(r)
114 return r.generic_push(obj, call)
115}
116
117func (r *Runtime) arrayproto_pop_generic(obj *Object) Value {
118 l := toLength(obj.self.getStr("length", nil))

Callers

nothing calls this directly

Calls 2

generic_pushMethod · 0.95
ToObjectMethod · 0.65

Tested by

no test coverage detected