From 84c38f34eeb2a6f9f6786aba0f5da5eb9efa422b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Sat, 25 Aug 2018 21:42:49 +0200 Subject: Prevent circular imports in ts code (#576) --- js/global-eval.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 js/global-eval.ts (limited to 'js/global-eval.ts') diff --git a/js/global-eval.ts b/js/global-eval.ts new file mode 100644 index 000000000..ee37e6f24 --- /dev/null +++ b/js/global-eval.ts @@ -0,0 +1,6 @@ +// 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. +export const globalEval = eval; -- cgit v1.2.3