Fix a typo in shell_minimal.js (#14794)
ENVIRONMENT_IS_NODE exists only at runtime, but it was in an #ifdef. This fixes breakage in the benchmark suite.
This commit is contained in:
Родитель
a8d227cbde
Коммит
a16ad67882
|
@ -37,7 +37,7 @@ var ENVIRONMENT_IS_SHELL = typeof read === 'function';
|
|||
var ENVIRONMENT_IS_WEB = true
|
||||
#elif ENVIRONMENT && !ENVIRONMENT.includes(',')
|
||||
var ENVIRONMENT_IS_WEB = {{{ ENVIRONMENT === 'web' }}};
|
||||
#elif ENVIRONMENT_MAY_BE_SHELL && ENVIRONMENT_IS_NODE
|
||||
#elif ENVIRONMENT_MAY_BE_SHELL && ENVIRONMENT_MAY_BE_NODE
|
||||
var ENVIRONMENT_IS_WEB = !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_SHELL;
|
||||
#elif ENVIRONMENT_MAY_BE_SHELL
|
||||
var ENVIRONMENT_IS_WEB = !ENVIRONMENT_IS_SHELL;
|
||||
|
|
Загрузка…
Ссылка в новой задаче