From d8233624aa4bbe35c96137eef2a1f95a4ff851fb Mon Sep 17 00:00:00 2001 From: Michael Ficarra <mficarra@shapesecurity.com> Date: Fri, 5 Jan 2018 11:52:43 -0800 Subject: [PATCH] add missing compareArray function --- .../Array/prototype/flatten/empty-object-elements.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/built-ins/Array/prototype/flatten/empty-object-elements.js b/test/built-ins/Array/prototype/flatten/empty-object-elements.js index 82a73c0cbc..97f031e2d3 100644 --- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js +++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js @@ -4,11 +4,12 @@ esid: sec-array.prototype.flatten description: > arrays with empty object elements +includes: [compareArray.js] ---*/ var a = {}, b = {}; -assert.compareArrays([a].flatten(), [a]); -assert.compareArrays([a, [b]].flatten(), [a, b]); -assert.compareArrays([[a], b].flatten(), [a, b]); -assert.compareArrays([[a], [b]].flatten(), [a, b]); +assert.compareArray([a].flatten(), [a]); +assert.compareArray([a, [b]].flatten(), [a, b]); +assert.compareArray([[a], b].flatten(), [a, b]); +assert.compareArray([[a], [b]].flatten(), [a, b]); -- GitLab