blob: b81199dd8cdd8aa3bb6c61251525b19125f52683 [file] [log] [blame]
<!DOCTYPE html>
<script src="../js/resources/js-test-pre.js"></script>
<script>
description('This tests that setting the proto of a built in constructor is not reset');
// Hotmail depends on the [[Prototype]] of DOM constructors to be Object.prototype.
shouldBe('Object.getPrototypeOf(HTMLElement)', 'Object.prototype');
var proto = new Number(42);
HTMLElement.__proto__ = proto;
shouldBe('Object.getPrototypeOf(HTMLElement)', 'proto');
</script>
<script src="../js/resources/js-test-post.js"></script>