- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.2k
 
JsCreateFunction
        Limin Zhu edited this page Oct 9, 2015 
        ·
        1 revision
      
    Creates a new JavaScript function.
STDAPI_(JsErrorCode)
    JsCreateFunction(
    _In_ JsNativeFunction nativeFunction,
    _In_opt_ void *callbackState,
    _Out_ JsValueRef *function);
- nativeFunction: The method to call when the function is invoked.
 - callbackState: User provided state that will be passed back to the callback.
 - function: The new function object.
 
The code JsNoError if the operation succeeded, a failure code otherwise.
Requires an active script context.
- Architecture Overview
 - Building ChakraCore
 - ChakraCore Code Structure
 - Contributor Guidance
 - Engineering Notes
 - Embedding ChakraCore
 - Testing ChakraCore
 - Getting ChakraCore binaries
 - Label Glossary
 - Resources
 - Roadmap / Release Notes
 
Want to contribute to this Wiki? Fork it and send a pull request!