* JsSetCurrentContext parameter should be _In_opt_ * Update JsSetCurrentContext in jsrt.cpp Co-authored-by: Richard <[email protected]>
@@ -1036,7 +1036,7 @@ typedef unsigned short uint16_t;
/// </returns>
CHAKRA_API
JsSetCurrentContext(
- _In_ JsContextRef context);
+ _In_opt_ JsContextRef context);
/// <summary>
/// Gets the script context that the object belongs to.
@@ -799,7 +799,7 @@ CHAKRA_API JsGetCurrentContext(_Out_ JsContextRef *currentContext)
END_JSRT_NO_EXCEPTION
}
-CHAKRA_API JsSetCurrentContext(_In_ JsContextRef newContext)
+CHAKRA_API JsSetCurrentContext(_In_opt_ JsContextRef newContext)
{
VALIDATE_ENTER_CURRENT_THREAD();