From 90125566bbaed8b5c6e55ca8dbc432e3433fb73c Mon Sep 17 00:00:00 2001 From: Maximilien Mellen Date: Wed, 19 Feb 2020 21:36:18 +0100 Subject: Enable TS strict mode by default (#3899) Fixes #3324 Co-authored-by: Kitson Kelly --- cli/compilers/ts.rs | 2 +- cli/compilers/wasm_wrap.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/compilers') diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index dec74c256..0261b983e 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -714,7 +714,7 @@ mod tests { .unwrap() .code .as_bytes() - .starts_with(b"console.log(\"Hello World\");")); + .starts_with(b"\"use strict\";\nconsole.log(\"Hello World\");")); } #[tokio::test] diff --git a/cli/compilers/wasm_wrap.js b/cli/compilers/wasm_wrap.js index c90bd5540..98892b8e0 100644 --- a/cli/compilers/wasm_wrap.js +++ b/cli/compilers/wasm_wrap.js @@ -1,3 +1,4 @@ +// @ts-nocheck const importObject = Object.create(null); //IMPORTS -- cgit v1.2.3