Closed Bug 403422 Opened 18 years ago Closed 18 years ago

Hide code from toSource using switch without case

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 355509

People

(Reporter: sirdarckcat, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 The following code wont show the code after default: this is a bug in the js interpreter. function f(){ switch(false){ default: alert("Where is this code?"); } } alert(f); f(); Reproducible: Always Steps to Reproduce: 1. evaulate the code Actual Results: this is a bug in the js interpreter. function f(){ switch(false){ } } Expected Results: this is a bug in the js interpreter. function f(){ switch(false){ default: alert("Where is this code?"); } }
Attached file Sample code
Assignee: nobody → general
Component: Disability Access → JavaScript Engine
Product: Firefox → Core
QA Contact: disability.access → general
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: