Closed Bug 615072 Opened 14 years ago Closed 14 years ago

obj decl from top of Parser::letStatement is unused

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug)

Details

(Keywords: coverity, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

5500 Parser::letStatement()
declared here:
5502     JSObject *obj;
5506     do {
5537         if (stmt && (stmt->flags & SIF_SCOPE)) {
5538             JS_ASSERT(tc->blockChainBox == stmt->blockBox);
assigned here:
5539             obj = tc->blockChain();
5540         } else {
shadowed here:
5569             JSObject *obj = js_NewBlockObject(tc->parser->context);
5570             if (!obj)
5571                 return NULL;
5589             obj->setParent(tc->blockChain());
5611         }
loop only executes once:
5617     } while (0);
Assignee: general → timeless
Status: NEW → ASSIGNED
Attachment #496439 - Flags: review?(jorendorff)
Attachment #496439 - Flags: review?(jorendorff) → review+
http://hg.mozilla.org/mozilla-central/rev/d0a8bb359a7d
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: