8306281: function isWsl() returns false on WSL2

Reviewed-by: erikj
This commit is contained in:
Ivan Bereziuk 2023-06-13 12:40:54 +00:00 committed by Erik Joelsson
parent c884862ad2
commit 9b0baa10b9

View File

@ -1519,7 +1519,7 @@ var getVersionNumbers = function () {
var isWsl = function (input) {
return ( input.build_osenv == "wsl"
|| (input.build_os == "linux"
&& java.lang.System.getProperty("os.version").contains("Microsoft")));
&& java.lang.System.getProperty("os.version").toLowerCase().contains("microsoft")));
}
var error = function (s) {