blob: e569afb2e76014404cfa45fe8d8f7570116fd637 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../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)', 'Element');
var proto = new Number(42);
HTMLElement.__proto__ = proto;
shouldBe('Object.getPrototypeOf(HTMLElement)', 'proto');
</script>
<script src="../../resources/js-test-post.js"></script>