Bug 143377

Summary: Native JSFunction should be able to wrap std::function
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WIP none

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