1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_3/Object/regress-79129-001.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/* 1.10 + * Date: 06 May 2001 1.11 + * 1.12 + * SUMMARY: Regression test: we shouldn't crash on this code 1.13 + * 1.14 + * See http://bugzilla.mozilla.org/show_bug.cgi?id=79129 1.15 + */ 1.16 +//----------------------------------------------------------------------------- 1.17 +var BUGNUMBER = 79129; 1.18 +var summary = "Regression test: we shouldn't crash on this code"; 1.19 + 1.20 +//----------------------------------------------------------------------------- 1.21 +test(); 1.22 +//----------------------------------------------------------------------------- 1.23 + 1.24 + 1.25 +function test() 1.26 +{ 1.27 + enterFunc ('test'); 1.28 + printBugNumber(BUGNUMBER); 1.29 + printStatus (summary); 1.30 + tryThis(); 1.31 + reportCompare('No Crash', 'No Crash', 'Should not crash'); 1.32 + exitFunc ('test'); 1.33 +} 1.34 + 1.35 + 1.36 +function tryThis() 1.37 +{ 1.38 + obj={}; 1.39 + obj.a = obj.b = obj.c = 1; 1.40 + delete obj.a; 1.41 + delete obj.b; 1.42 + delete obj.c; 1.43 + obj.d = obj.e = 1; 1.44 + obj.a=1; 1.45 + obj.b=1; 1.46 + obj.c=1; 1.47 + obj.d=1; 1.48 + obj.e=1; 1.49 +}