mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
fix: update assert.compareArray.format to accept "spreadable"
This commit is contained in:
parent
50dd431dff
commit
78554b2dac
@ -26,8 +26,8 @@ compareArray.isSameValue = function(a, b) {
|
|||||||
return a === b;
|
return a === b;
|
||||||
};
|
};
|
||||||
|
|
||||||
compareArray.format = function(array) {
|
compareArray.format = function(spreadable) {
|
||||||
return `[${array.map(String).join(', ')}]`;
|
return `[${[...spreadable].map(String).join(', ')}]`;
|
||||||
};
|
};
|
||||||
|
|
||||||
assert.compareArray = function(actual, expected, message) {
|
assert.compareArray = function(actual, expected, message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user