blob: f2f6cb699421a10d9c426c8ae4ef6b57b2a1cb51 (
plain)
1
2
3
4
5
6
|
load(libdir + "asserts.js");
var calledToString = false;
assertThrowsInstanceOf(function () { Object.prototype.hasOwnProperty.call(null,
{toString: function () { calledToString = true; }}); },
TypeError);
assertEq(calledToString, true);
|