Bug 143377 - Native JSFunction should be able to wrap std::function
Summary: Native JSFunction should be able to wrap std::function
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-03 09:31 PDT by youenn fablet
Modified: 2015-06-16 04:58 PDT (History)
0 users

See Also:


Attachments
WIP (12.11 KB, patch)
2015-04-03 09:34 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2015-04-03 09:31:35 PDT
By enabling std::function wrapped JSFunctions, we would allow lambda functions to be used as native JS functions.
This would be useful for instance in the implementation of ReadableStream operating on JS sources.
The close, error and enqueue JS functions need to retrieve in some manner the stream to operate on.
Comment 1 youenn fablet 2015-04-03 09:34:38 PDT
Created attachment 250081 [details]
WIP
Comment 2 youenn fablet 2015-06-16 04:58:22 PDT
Fixed as part of bug 145792