(call FunctionCall)
| 1237 | } |
| 1238 | |
| 1239 | func (r *Runtime) arrayproto_flatMap(call FunctionCall) Value { |
| 1240 | o := call.This.ToObject(r) |
| 1241 | l := toLength(o.self.getStr("length", nil)) |
| 1242 | callbackFn := r.toCallable(call.Argument(0)) |
| 1243 | thisArg := Undefined() |
| 1244 | if len(call.Arguments) > 1 { |
| 1245 | thisArg = call.Argument(1) |
| 1246 | } |
| 1247 | a := arraySpeciesCreate(o, 0) |
| 1248 | r.flattenIntoArray(a, o, l, 0, 1, callbackFn, thisArg) |
| 1249 | return a |
| 1250 | } |
| 1251 | |
| 1252 | func (r *Runtime) arrayproto_with(call FunctionCall) Value { |
| 1253 | o := call.This.ToObject(r) |
nothing calls this directly
no test coverage detected