From 2668637e9bad75bef016e7f8a5f481b3c6221891 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 29 May 2020 20:24:06 +1000 Subject: fix: REPL evaluates in strict mode (#5565) Since everything that Deno loads is treated as an ES Module, it means that all code is treated as "use strict" except for when using the REPL. This PR changes that so code in the REPL is also always evaluated with "use strict". There are also a couple other places where we load code as scripts which should also use "use strict" just in case. --- deno_typescript/compiler_main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'deno_typescript/compiler_main.js') diff --git a/deno_typescript/compiler_main.js b/deno_typescript/compiler_main.js index 31f539a27..847f3435f 100644 --- a/deno_typescript/compiler_main.js +++ b/deno_typescript/compiler_main.js @@ -5,6 +5,8 @@ // understood by the TypeScript language service, so it allows type safety // checking in VSCode. +"use strict"; + const ASSETS = "$asset$"; /** -- cgit v1.2.3