Skip to content

Commit f7b9a47

Browse files
author
James Halliday
committed
fix for the other tests that don't use a cmp function
1 parent 8ab93e2 commit f7b9a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = function (obj, opts) {
2525
return '[' + out.join(',') + ']';
2626
}
2727
else {
28-
var keys = objectKeys(node).sort(cmp(node));
28+
var keys = objectKeys(node).sort(cmp && cmp(node));
2929
var out = [];
3030
for (var i = 0; i < keys.length; i++) {
3131
var key = keys[i];

0 commit comments

Comments
 (0)