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)

7 Branch
x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: eric.promislow, Unassigned)

Details

Attachments

(1 file)

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: ........^
Oops. Ignore the path in the end of the observed output block.
Severity: normal → minor
Assignee: general → nobody
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.

Attachment

General

Creator:
Created:
Updated:
Size: