deps/v8/src/debug/debug.js
function ArrayToProtocolArray_(array, mirror_serializer) {
  var json = [];
  for (var i = 0; i < array.length; i++) {
    json.push(ValueToProtocolValue_(array[i], mirror_serializer));
  }
  return json;
}
function ArrayToProtocolArray_(array, mirror_serializer) {
  var json = [];
  for (var i = 0; i < array.length; i++) {
    json.push(ValueToProtocolValue_(array[i], mirror_serializer));
  }
  return json;
}
Convert an array to its debugger protocol representation. It will convert
each array element to a protocol value.
@param {Array} array The array to format as protocol array.
@param {MirrorSerializer} mirror_serializer The serializer to use if any
mirror objects are encountered.
@return {Array} Protocol array value.