Skip to content

JsRuntimeAttributes

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Attributes of a runtime.

Syntax

enum JsRuntimeAttributes

Members

  • JsRuntimeAttributeNone: No special attributes.
  • JsRuntimeAttributeDisableBackgroundWork: The runtime will not do any work (such as garbage collection) on background threads.
  • JsRuntimeAttributeAllowScriptInterrupt: The runtime should support reliable script interruption. This increases the number of places where the runtime will check for a script interrupt request at the cost of a small amount of runtime performance.
  • JsRuntimeAttributeEnableIdleProcessing: Host will call JsIdle, so enable idle processing. Otherwise, the runtime will manage memory slightly more aggressively.
  • JsRuntimeAttributeDisableNativeCodeGeneration: Runtime will not generate native code.
  • JsRuntimeAttributeDisableEval: Using eval or function constructor will throw an exception.
  • JsRuntimeAttributeEnableExperimentalFeatures: Runtime will enable all experimental features.
  • JsRuntimeAttributeDispatchSetExceptionsToDebugger: Calling JsSetException will also dispatch the exception to the script debugger (if any) giving the debugger a chance to break on the exception.
Clone this wiki locally