Bug 117594
Summary: | Refactor ObjCCallbackFunction to allow use as both a function and a constructor | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mark Hahnenberg <mhahnenberg> |
Component: | JavaScriptCore | Assignee: | Mark Hahnenberg <mhahnenberg> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 117595 | ||
Bug Blocks: |
Mark Hahnenberg
We want ObjCCallbackFunction to support being called as both a function and a constructor. Basically this means that ObjCCallbackFunction should have the functionality of both JSCallbackFunction and JSCallbackConstructor. To avoid having to use multiple inheritance, we need to make ObjCCallbackFunction implement its own versions of getCallData and getConstructData and keep track of its own callbacks.
This refactoring will be done in a series of patches. This is the tracking bug for those sub tasks.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mark Hahnenberg
Marking as fixed since ObjCCallbackFunction implements both getCallData and getConstructData now.