Closed Bug 1140596 Opened 9 years ago Closed 9 years ago

Warn when injecting a semicolon in return statements when we're doing something that the author probably did not intend

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1005110

People

(Reporter: ehsan.akhgari, Unassigned)

Details

Consider this example:

void foo() {
  return
    "bar";
}

It would be nice if we issued a warning saying "Hey, you're actually returning undefined here, beware!"
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.