Bug 41678
Summary: | [Qt] QtScript should provide an API for accessing the JS environment from slots | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kent Hansen <kent.hansen> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Enhancement | CC: | cmarcelo, jedrzej.nowacki |
Priority: | P2 | Keywords: | Qt, QtTriaged |
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | All | ||
Bug Depends on: | 41664 | ||
Bug Blocks: | 31863 |
Kent Hansen
See http://doc.trolltech.com/latest/qscriptable.html
This API effectively gives a C++ slot access to the this-object and arguments when the slot is invoked from JS.
It's most useful for implementing a QObject-based prototype object.
It can also be used to implement slots that can take an arbitrary number of arguments (normally the "extra" arguments would be discarded when calling the slot).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jędrzej Nowacki
Porting QtScript API over JSC C API will not be continued.