Three issues with labels

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
10 years ago
6 years ago

People

(Reporter: BijuMailList, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/6593fd1f4938a6a1#

function a() {
x:;
    b();
y:
    c();
y:
    d();
}

a

alert(a);

// gives ==>

function a() {
    x: {
    }
    b();
y:
    c();
y:
    d();

}


Three issues:-

1. Why label "x" is indented right?
2. Why an extra braces after label "x" ?
3. Why it is not an error if there exist 2 labels with same name "y"?

Comment 1

6 years ago
Fixed by saving the source.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.