add toString key to instance keys as methods are enumerable
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user