Debian Codegraph @

js/src/tests/non262/extensions/regress-369404.js

raw
1 // |reftest| skip-if(xulRuntime.shell)
2 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 369404;
9 var summary = 'Do not assert: !SPROP_HAS_STUB_SETTER(sprop) || (sprop->attrs & JSPROP_GETTER) ';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
17
18 function test()
19 {
20 printBugNumber(BUGNUMBER);
21 printStatus (summary);
22
23 gDelayTestDriverEnd = true;
24 document.write('<span id="r"> </span>' +
25 '<script>' +
26 'f = function(){};' +
27 'f.prototype = document.getElementById("r").childNodes;' +
28 'j = new f();' +
29 'j[0] = null;' +
30 '</script>');
31 window.addEventListener('load', crash, false);
32 }
33
34 function crash()
35 {
36 gDelayTestDriverEnd = false;
37 reportCompare(expect, actual, summary);
38 jsTestDriverEnd();
39 }