[Webkit-unassigned] [Bug 84540] JS binding code generator doesn't handle "attribute unsigned long[]" well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 23 01:46:47 PDT 2012


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





--- Comment #9 from Vineet Chaudhary (vineetc) <rgf748 at motorola.com>  2012-04-23 01:46:46 PST ---
(In reply to comment #8)
> (From update of attachment 138305 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=138305&action=review
> 
> > Source/WebCore/bindings/scripts/CodeGenerator.pm:350
> > +    return 1 if $primitiveTypeHash{$type};
> > +    return 1 if $numericTypeHash{$type};
> > +    return 1 if $type eq "String";
> 
> AvoidInclusionOfType() is already used in CodeGenerator*.pm. I am a bit worrying that this would change the existing behaviors. No worry?

Umm I think the places where AvoidInclusionOfType is used to check whether to include header of type or not.
Looking at the current implementation of AvoidInclusionOfType it is avoiding inclusion only because it doesn't have headers like SVGPoint/SVGNumber adding above code won't change existing behaviour because it doesn't have headers for these type either.
IMO worry is if $arrayType is "SVGPoint/SVGNumber" it will skip headers.

So should I use IsPrimitiveType subroutine adding "String" to it or Write a new subroutine?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list