🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15288

Re: JS: bad switch statement brings down ID

#15288
From: Olav_Kvern
Date: Wed, 10 Dec 2003 22:18
22 lines
1150 bytes
Peter--

It's usually:



switch(x){ 
    case 1: 
    case 2: 
        //do something 
        break; 
    case 3: 
    case 4: 
        //do something 
        break; 
}

But ID still shouldn't crash. We caught a crash were omitting a "default" case caused a crash, but missed this one.

Thanks,

Ole
Technical Details
Message-ID: <2ccedbfe.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccedbfe.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,dd463b97b240c9d4
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-10 14:37:57 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS: bad switch statement brings down ID
Message-ID: <2ccedbfe.0@webx.la2eafNXanI>
Date: Wed, 10 Dec 2003 14:18:36 -0800
References: <2ccedbfe.-1@webx.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit