[Webkit-unassigned] [Bug 141070] Crash in uninitialized deconstructing variable.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 30 14:31:35 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=141070

--- Comment #9 from Saam Barati <saambarati1 at gmail.com> ---
(In reply to comment #8)
> Comment on attachment 245734 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=245734&action=review
> 
> > Source/JavaScriptCore/parser/Parser.cpp:381
> > +    TreeExpression varDecls = parseVarDeclarationList(context, scratch, scratch1, scratch2, scratch3, scratch3, scratch3, false);
> 
> When we write code like this, we either use an enumeration or we explicitly
> assign the boolean value to a named local variable. Otherwise, it's hard to
> know what the parameter means.

Yeah, agreed. I'll make it into an enum, it seems cleanest that way.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150130/0be815f0/attachment-0002.html>


More information about the webkit-unassigned mailing list