mirror of https://github.com/tc39/test262.git
chore: use [].map.call instead of spread
This commit is contained in:
parent
4847d9db5a
commit
92dad8d640
|
@ -27,7 +27,7 @@ compareArray.isSameValue = function(a, b) {
|
||||||
};
|
};
|
||||||
|
|
||||||
compareArray.format = function(spreadable) {
|
compareArray.format = function(spreadable) {
|
||||||
return `[${[...spreadable].map(String).join(', ')}]`;
|
return `[${[].map.call(spreadable, String).join(', ')}]`;
|
||||||
};
|
};
|
||||||
|
|
||||||
assert.compareArray = function(actual, expected, message) {
|
assert.compareArray = function(actual, expected, message) {
|
||||||
|
|
Loading…
Reference in New Issue