Bug 112760

Summary: do not use string reference for enum support in CodeGeneratorJS.pm
Product: WebKit Reporter: arno. <a.renevier>
Component: WebCore Misc.Assignee: arno. <a.renevier>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, darin, haraken, japhet, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch proposal none

arno.
Reported 2013-03-19 17:54:40 PDT
Hi, as discussed in bug #112475 comment 13, this is about not using String reference in generated binding for enum values.
Attachments
patch proposal (4.23 KB, patch)
2013-03-19 17:56 PDT, arno.
no flags
arno.
Comment 1 2013-03-19 17:56:27 PDT
Created attachment 193958 [details] patch proposal
Kentaro Hara
Comment 2 2013-03-19 18:03:30 PDT
Comment on attachment 193958 [details] patch proposal Thanks for the quick fix.
WebKit Review Bot
Comment 3 2013-03-19 19:13:44 PDT
Comment on attachment 193958 [details] patch proposal Clearing flags on attachment: 193958 Committed r146292: <http://trac.webkit.org/changeset/146292>
WebKit Review Bot
Comment 4 2013-03-19 19:13:47 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 5 2013-03-20 10:55:35 PDT
Comment on attachment 193958 [details] patch proposal View in context: https://bugs.webkit.org/attachment.cgi?id=193958&action=review > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2147 > + push(@implContent, " const String string = value.isEmpty() ? String() : value.toString(exec)->value(exec);\n"); Not sure why the const is here. It’s OK, but unneeded. > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2789 > + push(@$outputArray, " const String ${name}(${argValue}.isEmpty() ? String() : ${argValue}.toString(exec)->value(exec));\n"); Ditto.
Note You need to log in before you can comment on or make changes to this bug.