Add toJSON alias of valueOf. [closes #521]

This commit is contained in:
John-David Dalton
2014-04-07 09:23:40 -07:00
parent ea87006150
commit 78f17bd083
2 changed files with 13 additions and 1 deletions

View File

@@ -9659,6 +9659,17 @@
skipTest();
}
});
test('should be aliased', 2, function() {
if (!isNpm) {
var expected = _.prototype.valueOf;
strictEqual(_.prototype.toJSON, expected);
strictEqual(_.prototype.value, expected);
}
else {
skipTest(2);
}
});
}());
/*--------------------------------------------------------------------------*/