]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/mozilla/ecma_3/Object/regress-79129-001.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / mozilla / ecma_3 / Object / regress-79129-001.js
CommitLineData
b37bf2e1
A
1/*
2* The contents of this file are subject to the Netscape Public
3* License Version 1.1 (the "License"); you may not use this file
4* except in compliance with the License. You may obtain a copy of
5* the License at http://www.mozilla.org/NPL/
6*
7* Software distributed under the License is distributed on an "AS IS"
8* basis, WITHOUT WARRANTY OF ANY KIND, either expressed
9* or implied. See the License for the specific language governing
10* rights and limitations under the License.
11*
12* The Original Code is mozilla.org code.
13*
14* The Initial Developer of the Original Code is Netscape
15* Communications Corporation. Portions created by Netscape are
16* Copyright (C) 1998 Netscape Communications Corporation.
17* All Rights Reserved.
18*
19* Contributor(s): pschwartau@netscape.com
20* Date: 06 May 2001
21*
22* SUMMARY: Regression test: we shouldn't crash on this code
23*
24* See http://bugzilla.mozilla.org/show_bug.cgi?id=79129
25*/
26//-------------------------------------------------------------------------------------------------
27var bug = 79129;
28var summary = "Regression test: we shouldn't crash on this code";
29
30//-------------------------------------------------------------------------------------------------
31test();
32//-------------------------------------------------------------------------------------------------
33
34
35function test()
36{
37 enterFunc ('test');
38 printBugNumber (bug);
39 printStatus (summary);
40 tryThis();
41 exitFunc ('test');
42}
43
44
45function tryThis()
46{
47 obj={};
48 obj.a = obj.b = obj.c = 1;
49 delete obj.a;
50 delete obj.b;
51 delete obj.c;
52 obj.d = obj.e = 1;
53 obj.a=1;
54 obj.b=1;
55 obj.c=1;
56 obj.d=1;
57 obj.e=1;
58}