blob: ecf8d5e0f1e0e4b0e5ab58a432675210d5110f91 [file] [log] [blame]
description(
"This test verifies the behaviour of Object.prototype.hasOwnProperty, as documented in ECMA-262 rev3 section 15.2.4.5."
);
shouldBe("typeof {foo : 'yum'}.hasOwnProperty", '"function"');
shouldBeTrue("({foo : 'yum'}).hasOwnProperty('foo')");
shouldBeTrue("''.hasOwnProperty('length')");
shouldBeFalse("({foo : 'yum'}).hasOwnProperty('bar')");
shouldBeFalse("({foo : 'yum'}).hasOwnProperty('toString')");
shouldBeFalse("''.hasOwnProperty('toString')");
var successfullyParsed = true;