mirror of https://github.com/tc39/test262.git
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;
|
||||
};
|
||||
|
||||
compareArray.format = function(array) {
|
||||
return `[${array.map(String).join(', ')}]`;
|
||||
compareArray.format = function(spreadable) {
|
||||
return `[${[...spreadable].map(String).join(', ')}]`;
|
||||
};
|
||||
|
||||
assert.compareArray = function(actual, expected, message) {
|
||||
|
|
Loading…
Reference in New Issue