Debian Codegraph @

js/src/tests/non262/regress/regress-477234.js

raw
1 // |reftest| slow
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 = 477234;
9 var summary = 'Do not assert: v != JSVAL_ERROR_COOKIE';
10 var actual = '';
11 var expect = '';
12
13
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
17
18 function test()
19 {
20 printBugNumber(BUGNUMBER);
21 printStatus (summary);
22
23
24 for (iters = 0; iters < 11500; ++iters) {
25 for (let x of ['', '', '']){}
26 eval("Object.defineProperty(__proto__, 'x', " +
27 "{" +
28 " enumerable: true, configurable: true," +
29 " get: function(){}" +
30 "});");
31 var c = toString;
32 delete toString;
33 toString = c;
34 }
35
36
37 delete __proto__.x;
38
39 reportCompare(expect, actual, summary);
40 }