RESOLVED FIXED 8958
Should be able to have custom implementations for JS methods
https://bugs.webkit.org/show_bug.cgi?id=8958
Summary Should be able to have custom implementations for JS methods
Anders Carlsson
Reported 2006-05-17 12:11:01 PDT
...currently we do this by adding an extra object in the prototype chain.
Attachments
Add [Custom] keyword and port JSCanvasRenderingContext2D over to it (50.18 KB, patch)
2006-05-17 12:16 PDT, Anders Carlsson
mjs: review+
Anders Carlsson
Comment 1 2006-05-17 12:16:50 PDT
Created attachment 8368 [details] Add [Custom] keyword and port JSCanvasRenderingContext2D over to it There are two things I'm unsure about with this patch: * The custom functions in CanvasRenderingContext2D are vararg functions, and I've indicated this by adding /* ... */ as arguments to them. The problem with this is that the length property of the function won't be correct. * I don't like the "custom" type that's used for properties. Perhaps "object" or "any" is a better choice?
Maciej Stachowiak
Comment 2 2006-05-17 13:54:15 PDT
Comment on attachment 8368 [details] Add [Custom] keyword and port JSCanvasRenderingContext2D over to it r=me
Note You need to log in before you can comment on or make changes to this bug.