4 https://bugzilla.mozilla.org/show_bug.cgi?id=603201
8 <title>Test for Bug
603201</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
603201 **/
15 SimpleTest.waitForExplicitFinish();
17 var nodes = document.body.childNodes;
19 Object.setPrototypeOf(Number.prototype, nodes);
21 Object.defineProperty(nodes,
"getter", {get() {
26 Object.defineProperty(Object.getPrototypeOf(nodes),
"getter2", {get() {
33 is(number.getter,
"getter");
34 is(number.getter2,
"getter2");
41 <body onload=
"runTest();">