Closed Bug 286881 Opened 20 years ago Closed 20 years ago

In <newsblog.js>, 2 "Warning: trailing comma is not legal in ECMA-262 object initializers"

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sgautherie, Assigned: sgautherie)

References

Details

Attachments

(1 file)

[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

{{
Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: file:///W:/PROGRAM%20FILES/MOZILLA%20THUNDERBIRD/components/newsblog.js
Line: 281
Source Code:
};

Warning: trailing comma is not legal in ECMA-262 object initializers
Source File: file:///W:/PROGRAM%20FILES/MOZILLA%20THUNDERBIRD/components/newsblog.js
Line: 361, Column: 2
Source Code:
  },
}}

when starting TB.
[Mozilla Thunderbird, version 1.0+ (20050319)] (nightly) (W98SE)

Could you review/check in this patch ? Thanks.
Assignee: mscott → gautheri
Status: NEW → ASSIGNED
Attachment #177979 - Flags: review?(mscott)
Brendan,
it seems that the line (number) for this warning should be 1 less:
is it something fixable ?
Target Milestone: --- → Thunderbird1.1
Serge, this isn't easy to fix.  The SpiderMonkey lexical scanner was designed to
point to an offending token in the currently-buffered line.  I'd rather fix this
by bootstrapping the next-gen JS front end (Narcissus).  If you want to file a
bug on this assigned to general@js.bugs, feel free and cc: me.

/be
Attachment #177979 - Flags: superreview+
Attachment #177979 - Flags: review?(mscott)
Attachment #177979 - Flags: review+
(In reply to comment #3)
> If you want to file a
> bug on this assigned to general@js.bugs, feel free and cc: me.

I filed Bug 286937:
"Warning: trailing comma is not legal in ECMA-262 object initializers" Line and
Source Code should be the preceding line
Whiteboard: [checkin-needed]
Attachment #177979 - Flags: approval-aviary1.1a?
Attachment #177979 - Flags: approval-aviary1.1a? → approval-aviary1.1a-
has this patch landed yet on the trunk? it not could someone check it in, since
it has both r= and sr=
(In reply to comment #5)
> has this patch landed yet on the trunk? it not could someone check it in, since
> it has both r= and sr=

See '[checkin-needed]' and 'asa: approval-aviary1.1a1-' ... I'm helpless.
Comment on attachment 177979 [details] [diff] [review]
(Av1) <newsblog.js>
[Checked in: Comment 8 and 9]


'approval-aviary1.1a2=?':
Trivial JS code cleanup, no risk.
Attachment #177979 - Flags: approval-aviary1.1a2?
Attachment #177979 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 177979 [details] [diff] [review]
(Av1) <newsblog.js>
[Checked in: Comment 8 and 9]


Brian checked it in without the ";" removal.
I won't bother.
Attachment #177979 - Attachment description: (Av1) <newsblog.js> → (Av1) <newsblog.js> [Checked in: Comment 8 and 9]
Attachment #177979 - Attachment is obsolete: true
Whiteboard: [checkin-needed]
Attachment #177979 - Attachment is obsolete: false
Component: RSS → Feed Reader
Product: Thunderbird → MailNews Core
Target Milestone: Thunderbird1.1 → ---
QA Contact: rss
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: