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

Method arrayproto_reverse_generic

builtin_array.go:974–980  ·  view source on GitHub ↗
(o *Object, start int64)

Source from the content-addressed store, hash-verified

972}
973
974func (r *Runtime) arrayproto_reverse_generic(o *Object, start int64) {
975 l := toLength(o.self.getStr("length", nil))
976 middle := l / 2
977 for lower := start; lower != middle; lower++ {
978 arrayproto_reverse_generic_step(o, lower, l-lower-1)
979 }
980}
981
982func (r *Runtime) arrayproto_reverse(call FunctionCall) Value {
983 o := call.This.ToObject(r)

Callers 1

arrayproto_reverseMethod · 0.95

Calls 3

toLengthFunction · 0.85
getStrMethod · 0.65

Tested by

no test coverage detected