commit | c87367f315f6f7a117cb0a9c4e9f20df4aacec1a | [log] [tgz] |
---|---|---|
author | Jackson Gardner <jacksongardner@google.com> | Wed Apr 03 15:22:38 2024 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 03 15:22:38 2024 +0000 |
tree | 96440564dc65df2eebf87aed9aab33157bd9474a | |
parent | 7bd45d67677f2cce8bf1c7f729aa53a55a75e83c [diff] |
[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" }""");