blob: b03f59e3c79b803ee52ecc07d2de7373447fdde1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests the value of location.valueOf after Object.prototype.valueOf has been replaced.");
var objectProtoValueOf = Object.prototype.valueOf;
delete Object.prototype.valueOf;
Object.defineProperty(Object.prototype, "valueOf", {value: 3});
shouldBe("location.valueOf", "objectProtoValueOf");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>