vendor: update dependencies with github.com/kardianos/govendor
This commit is contained in:
7
vendor/github.com/robertkrimen/otto/builtin_string.go
generated
vendored
7
vendor/github.com/robertkrimen/otto/builtin_string.go
generated
vendored
@ -380,7 +380,12 @@ func builtinString_split(call FunctionCall) Value {
|
||||
split = split[:limit]
|
||||
}
|
||||
|
||||
return call.runtime.toValue(split)
|
||||
valueArray := make([]Value, len(split))
|
||||
for index, value := range split {
|
||||
valueArray[index] = toValue_string(value)
|
||||
}
|
||||
|
||||
return toValue_object(call.runtime.newArrayOf(valueArray))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user