add toString key to instance keys as methods are enumerable

This commit is contained in:
Sebastian McKenzie
2015-01-04 08:01:08 +11:00
parent 7ab6df093b
commit 4506e39cf5

View File

@@ -17,4 +17,4 @@ for (var key in point) {
}
assert.equal(point.toString(), '(1, 2)');
assert.deepEqual(keys.sort(), ['x', 'y']);
assert.deepEqual(keys.sort(), ['toString', 'x', 'y']);