Source code

Revision control

Copy as Markdown

Other Tools

load(libdir + "asserts.js");
var calledToString = false;
assertThrowsInstanceOf(function () { Object.prototype.hasOwnProperty.call(null,
{toString: function () { calledToString = true; }}); },
TypeError);
assertEq(calledToString, true);