Back out 97036ab72558 which inappropriately compared turds to third parties.
1 load(libdir + "asserts.js");
2 var calledToString = false;
3 assertThrowsInstanceOf(function () { Object.prototype.hasOwnProperty.call(null,
4 {toString: function () { calledToString = true; }}); },
6 assertEq(calledToString, true);