Skip to content

Commit

Permalink
Remove dead-code
Browse files Browse the repository at this point in the history
`EXPORT_ES6 && !MODULARIZE` is never a valid combination.
  • Loading branch information
kleisauke committed Nov 7, 2022
1 parent 9074bb7 commit 6e52016
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ var ENVIRONMENT_IS_WASM_WORKER = Module['$ww'];
#if SHARED_MEMORY && !MODULARIZE
// In MODULARIZE mode _scriptDir needs to be captured already at the very top of the page immediately when the page is parsed, so it is generated there
// before the page load. In non-MODULARIZE modes generate it here.
#if EXPORT_ES6
var _scriptDir = import.meta.url;
#else
var _scriptDir = (typeof document != 'undefined' && document.currentScript) ? document.currentScript.src : undefined;

if (ENVIRONMENT_IS_WORKER) {
Expand All @@ -146,8 +143,7 @@ else if (ENVIRONMENT_IS_NODE) {
_scriptDir = __filename;
}
#endif // ENVIRONMENT_MAY_BE_NODE
#endif
#endif
#endif // SHARED_MEMORY && !MODULARIZE

// `/` should be present at the end if `scriptDirectory` is not empty
var scriptDirectory = '';
Expand Down

0 comments on commit 6e52016

Please sign in to comment.