From 111be56d9dbf79f366fc22ff445076604721c51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A6=88=EB=88=85?= Date: Mon, 13 Jun 2022 15:55:59 +0900 Subject: [PATCH] Use `var module` to prevent emcc pollution --- src/shell-pre.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-pre.js b/src/shell-pre.js index b0f0f4e0..398cd77d 100644 --- a/src/shell-pre.js +++ b/src/shell-pre.js @@ -65,7 +65,7 @@ var initSqlJs = function (moduleConfig) { // Since those are the only lines of code that care about module, we will undefine it. It's the most straightforward // of the options, and has the side effect of reducing emcc's efforts to modify the module if its output were to change in the future. // That's a nice side effect since we're handling the modularization efforts ourselves - module = undefined; + var module = undefined; // The emcc-generated code and shell-post.js code goes below, // meaning that all of it runs inside of this promise. If anything throws an exception, our promise will abort