We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3504496 commit 1ad850bCopy full SHA for 1ad850b
lib/Jsrt/ChakraCommon.h
@@ -1036,7 +1036,7 @@ typedef unsigned short uint16_t;
1036
/// </returns>
1037
CHAKRA_API
1038
JsSetCurrentContext(
1039
- _In_ JsContextRef context);
+ _In_opt_ JsContextRef context);
1040
1041
/// <summary>
1042
/// Gets the script context that the object belongs to.
lib/Jsrt/Jsrt.cpp
@@ -799,7 +799,7 @@ CHAKRA_API JsGetCurrentContext(_Out_ JsContextRef *currentContext)
799
END_JSRT_NO_EXCEPTION
800
}
801
802
-CHAKRA_API JsSetCurrentContext(_In_ JsContextRef newContext)
+CHAKRA_API JsSetCurrentContext(_In_opt_ JsContextRef newContext)
803
{
804
VALIDATE_ENTER_CURRENT_THREAD();
805
0 commit comments