Skip to content

Commit 33afb86

Browse files
authored
don't check for 'arguments' in web/worker environments - it doesn't make sense to look for commandline arguments there (and it makes us behave in surprising ways if we are inside a function that happens to have 'arguments' defined). instead, Module['arguments'] can be set manually if commandline arguments are desired (emscripten-core#6398)
1 parent a7554d2 commit 33afb86

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/shell.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@ else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
254254
xhr.send(null);
255255
};
256256

257-
if (typeof arguments != 'undefined') {
258-
Module['arguments'] = arguments;
259-
}
260-
261257
Module['setWindowTitle'] = function(title) { document.title = title };
262258
}
263259
#if ASSERTIONS

0 commit comments

Comments
 (0)