Commit 484c0b8
dart.library.js_util -> dart.library.js_interop for web detection
dart2wasm will no longer support `dart:js_util`, so
`dart.library.js_util` will be insufficient for detecting web backends.
`dart:js_interop` is intended to replace it for the foreseeable future,
so until we have an environment variable that more directly reflects
whether the code is compiled with a web backend, we can use
`dart.library.js_interop`.
Other mentions of `dart.library.js_util` in tests are benign and aren't
designed to detect all web backends specifically.
Bug: #61550
Change-Id: I6a6a69644c3614b3693ad72b546e111217575bfb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451547
Commit-Queue: Mayank Patke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>1 parent 5f0fc5c commit 484c0b8
File tree
2 files changed
+3
-3
lines changed- pkg/analyzer/test/src/lint/linter
- tests/language/library
2 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments