From dec7f7d6578e87cbad1fcc436646fb7834126d9e Mon Sep 17 00:00:00 2001 From: Steve Anton Date: Mon, 11 Sep 2023 16:49:53 -0700 Subject: [PATCH] Fix JS strict mode error in shell_minimal.js (#20226) --- src/shell_minimal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell_minimal.js b/src/shell_minimal.js index 7d161a63ac3a1..c236c0cce9034 100644 --- a/src/shell_minimal.js +++ b/src/shell_minimal.js @@ -172,7 +172,8 @@ var _scriptDir = (typeof document != 'undefined' && document.currentScript) ? do var ENVIRONMENT_IS_WORKER = typeof importScripts == 'function', ENVIRONMENT_IS_PTHREAD = ENVIRONMENT_IS_WORKER && !ENVIRONMENT_IS_WASM_WORKER; #else -var ENVIRONMENT_IS_WORKER = ENVIRONMENT_IS_PTHREAD = typeof importScripts == 'function'; +var ENVIRONMENT_IS_WORKER = typeof importScripts == 'function', + ENVIRONMENT_IS_PTHREAD = ENVIRONMENT_IS_WORKER; #endif var currentScriptUrl = typeof _scriptDir != 'undefined' ? _scriptDir : ((typeof document != 'undefined' && document.currentScript) ? document.currentScript.src : undefined);