Debian Codegraph @

js/src/tests/non262/object/regress-79129-001.js

raw
1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 /*
7 * Date: 06 May 2001
8 *
9 * SUMMARY: Regression test: we shouldn't crash on this code
10 *
11 * See http://bugzilla.mozilla.org/show_bug.cgi?id=79129
12 */
13 //-----------------------------------------------------------------------------
14 var BUGNUMBER = 79129;
15 var summary = "Regression test: we shouldn't crash on this code";
16
17 //-----------------------------------------------------------------------------
18 test();
19 //-----------------------------------------------------------------------------
20
21
22 function test()
23 {
24 printBugNumber(BUGNUMBER);
25 printStatus (summary);
26 tryThis();
27 reportCompare('No Crash', 'No Crash', 'Should not crash');
28 }
29
30
31 function tryThis()
32 {
33 obj={};
34 obj.a = obj.b = obj.c = 1;
35 delete obj.a;
36 delete obj.b;
37 delete obj.c;
38 obj.d = obj.e = 1;
39 obj.a=1;
40 obj.b=1;
41 obj.c=1;
42 obj.d=1;
43 obj.e=1;
44 }