Skip to content

Commit 4090886

Browse files
authored
Update docs for JScriptEvaluate (#11180)
1 parent b2abc77 commit 4090886

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: xml/Microsoft.JScript/Eval.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@
8484
</Parameters>
8585
<Docs>
8686
<param name="source">The code to evaluate.</param>
87-
<param name="unsafeOption">The string literal <c>unsafe</c> to enable unsafe evaluation; otherwise, <see langword="false" />.</param>
87+
<param name="unsafeOption">
88+
The string literal <c>unsafe</c> to enable unsafe evaluation; otherwise, <see langword="false" />.
89+
<para>
90+
<b>Important:</b> This parameter is not intended to serve as a security boundary.
91+
Using <c>unsafeOption</c> should not be considered a substitute for proper security practices.
92+
</para>
93+
</param>
8894
<param name="engine">A reference to the scripting engine to use to evaluate <paramref name="source" />.</param>
8995
<summary>Evaluates the specified JScript code by using the specified engine and safety option.</summary>
9096
<returns>The result of the evaluation. If <paramref name="source" /> is not a string, return value is <paramref name="source" />.</returns>

0 commit comments

Comments
 (0)