-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsSetModuleHostInfo
Richard edited this page Feb 23, 2018
·
1 revision
Set host info for the specified module.
CHAKRA_API
JsSetModuleHostInfo(
_In_ JsModuleRecord requestModule,
_In_ JsModuleHostInfoKind moduleHostInfo,
_In_ void* hostInfo);
- requestModule: The request module.
- moduleHostInfo: The type of host info to be set.
- hostInfo: The host info to be set.
The code JsNoError if the operation succeeded, a failure code otherwise.
This API is experimental and may have breaking change later. This is used for four things:
- Setting up the callbacks for module loading - note these are actually set on the current Context not the module so only have to be set for the first root module in any given context.
- Setting host defined info on a module record - can be anything that you wish to associate with your modules.
- Setting a URL for a module to be used for stack traces/debugging - note this must be set before calling JsParseModuleSource on the module or it will be ignored.
- Setting an exception on the module object - only relevant prior to it being Parsed.
- 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!