Closed
Bug 706953
Opened 13 years ago
Closed 2 years ago
js shell emits duplicate warnings for a single deprecated octal literal
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: eric.promislow, Unassigned)
Details
Attachments
(1 file)
150 bytes,
application/octet-stream
|
Details |
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
Build ID: 20111103063747
Steps to reproduce:
$ cat sample.js
var x = 0123;
$ js -v
JavaScript-C 1.8.5+ 2011-04-16
...
$ js -C -w -s sample.js
Actual results:
JS reports each warning about a deprecated octal three times. Here's the output
from the above run:
sample.js:1: warning: octal literals and octal escape sequences are deprecated:
sample.js:1: warning: var x = 0123;
sample.js:1: warning: ........^
sample.js:1: warning: octal literals and octal escape sequences are deprecated:
sample.js:1: warning: var x = 0123;
sample.js:1: warning: ........^
sample.js:1: warning: octal literals and octal escape sequences are deprecated:
sample.js:1: warning: var x = 0123;
sample.js:1: warning: ........^/home/ericp/lab/komodo/bugs/html/bug91761a-js-warnings.js
Expected results:
sample.js:1: warning: octal literals and octal escape sequences are deprecated:
sample.js:1: warning: var x = 0123;
sample.js:1: warning: ........^
Reporter | ||
Comment 1•13 years ago
|
||
Oops. Ignore the path in the end of the observed output block.
Severity: normal → minor
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•