underscore: Avoid regression and cleanup comments. [jddalton]

This commit is contained in:
John-David Dalton
2011-12-06 01:16:56 -05:00
parent d8d1bd0259
commit 2c5661ebb3
2 changed files with 8 additions and 7 deletions

View File

@@ -262,7 +262,7 @@ $(document).ready(function($, undefined) {
ok(!_.isEqual({a: 1}, {a: 1, b: 2}), "Commutative equality is implemented for objects");
ok(!_.isEqual({x: 1, y: undefined}, {x: 1, z: 2}), "Objects with identical keys and different values are not equivalent");
// Objects with shadowing properties
// Objects with properties that shadow non-enumerable ones.
ok(!_.isEqual({}, {toString: 1}), "Object with custom toString is not equal to {}");
ok(_.isEqual({toString: 1, valueOf: 2}, {toString: 1, valueOf: 2}), "Objects with equivalent shadow properties");