Fix tests in phantomjs.

This commit is contained in:
John-David Dalton
2015-01-16 04:09:10 -08:00
committed by jdalton
parent cd69a53406
commit edffe2a6fc
2 changed files with 25 additions and 17 deletions

View File

@@ -4039,9 +4039,7 @@
* @returns {Object} Returns the converted object.
*/
function arrayToObject(array) {
var result = { 'length': 0 };
push.apply(result, array);
return result;
return arrayCopy(array, { 'length': array.length });
}
/**