mirror of https://github.com/tc39/test262.git
add missing compareArray function
This commit is contained in:
parent
6bd7b21a2b
commit
d8233624aa
|
@ -4,11 +4,12 @@
|
||||||
esid: sec-array.prototype.flatten
|
esid: sec-array.prototype.flatten
|
||||||
description: >
|
description: >
|
||||||
arrays with empty object elements
|
arrays with empty object elements
|
||||||
|
includes: [compareArray.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var a = {}, b = {};
|
var a = {}, b = {};
|
||||||
|
|
||||||
assert.compareArrays([a].flatten(), [a]);
|
assert.compareArray([a].flatten(), [a]);
|
||||||
assert.compareArrays([a, [b]].flatten(), [a, b]);
|
assert.compareArray([a, [b]].flatten(), [a, b]);
|
||||||
assert.compareArrays([[a], b].flatten(), [a, b]);
|
assert.compareArray([[a], b].flatten(), [a, b]);
|
||||||
assert.compareArrays([[a], [b]].flatten(), [a, b]);
|
assert.compareArray([[a], [b]].flatten(), [a, b]);
|
||||||
|
|
Loading…
Reference in New Issue