[dart2wasm] `typeof process` should be compared to a string.

Change-Id: I5e9f144e786c03dca8c63775f15529a9b4fe7d89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/360565
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Jackson Gardner <jacksongardner@google.com>
diff --git a/sdk/lib/_internal/wasm/lib/uri_patch.dart b/sdk/lib/_internal/wasm/lib/uri_patch.dart
index 5bbea44..002aedd 100644
--- a/sdk/lib/_internal/wasm/lib/uri_patch.dart
+++ b/sdk/lib/_internal/wasm/lib/uri_patch.dart
@@ -28,7 +28,7 @@
   static bool get _isWindows => _isWindowsCached;
 
   static final bool _isWindowsCached = JS<bool>("""() => {
-        return typeof process != undefined &&
+        return typeof process != "undefined" &&
                Object.prototype.toString.call(process) == "[object process]" &&
                process.platform == "win32"
       }""");