Update documentation for missing semicolon.

NEW
Unassigned

Status

Developer Documentation
JavaScript
15 days ago
14 days ago

People

(Reporter: arai, Unassigned)

Tracking

Details

(Reporter)

Description

15 days ago
bug 1339895 fixed the error message for missing semicolon.

code:
  var x += 2
before:
  SyntaxError: missing ; before statement
after:
  SyntaxError: unexpected token: '+='

So the following documentation should be updated.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Missing_semicolon_before_statement

then, I'm wondering what's the best way.

  A. add yet another page for new error message and link to new one.  keep older one as is
  B. update existing page to new message at some point

currently the new error message links to old page.

fscholz, can I have your opinion?
Flags: needinfo?(fscholz)
I would say we should update the existing page to the new message when it is in the Firefox release version. (B.)
Flags: needinfo?(fscholz)
You need to log in before you can comment on or make changes to this bug.