blob: 3e9bfac2221d18f6ae35cd478995ecdd1b427d4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>
description('This tests that setting the proto of a built in constructor is not reset');
shouldBe('Object.getPrototypeOf(HTMLElement)', 'Element');
var proto = new Number(42);
HTMLElement.__proto__ = proto;
shouldBe('Object.getPrototypeOf(HTMLElement)', 'proto');
</script>
|