diff options
Diffstat (limited to 'js/global-eval.ts')
-rw-r--r-- | js/global-eval.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/global-eval.ts b/js/global-eval.ts index ee37e6f24..1f77c4952 100644 --- a/js/global-eval.ts +++ b/js/global-eval.ts @@ -1,6 +1,10 @@ -// If you use the eval function indirectly, by invoking it via a reference -// other than eval, as of ECMAScript 5 it works in the global scope rather than -// the local scope. This means, for instance, that function declarations create -// global functions, and that the code being evaluated doesn't have access to -// local variables within the scope where it's being called. +/** + * If you use the eval function indirectly, by invoking it via a reference + * other than eval, as of ECMAScript 5 it works in the global scope rather than + * the local scope. This means, for instance, that function declarations create + * global functions, and that the code being evaluated doesn't have access to + * local variables within the scope where it's being called. + * + * @internal + */ export const globalEval = eval; |