Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JsSetModuleHostInfo

Richard edited this pageFeb 23, 2018 ·1 revision

Set host info for the specified module.

Syntax

CHAKRA_APIJsSetModuleHostInfo(    _In_ JsModuleRecord requestModule,    _In_ JsModuleHostInfoKind moduleHostInfo,    _In_ void* hostInfo);

Parameters

  • requestModule: The request module.
  • moduleHostInfo: The type of host info to be set.
  • hostInfo: The host info to be set.

Return Value

The codeJsNoError if the operation succeeded, a failure code otherwise.

Remarks

This API is experimental and may have breaking change later.This is used for four things:

  1. 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.
  2. Setting host defined info on a module record - can be anything that you wish to associate with your modules.
  3. 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.
  4. Setting an exception on the module object - only relevant prior to it being Parsed.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp