All users were logged out of Bugzilla on October 13th, 2018

js shell emits duplicate warnings for a single deprecated octal literal

UNCONFIRMED
Unassigned

Status

()

--
minor
UNCONFIRMED
7 years ago
4 years ago

People

(Reporter: eric.promislow, Unassigned)

Tracking

7 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

150 bytes, application/octet-stream
Details
(Reporter)

Description

7 years ago
Created attachment 578366 [details]
bug91761a-js-warnings.js

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

7 years ago
Oops.  Ignore the path in the end of the observed output block.
Severity: normal → minor
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.