-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dart2wasm] Make dart.library.js false in conditional imports (attemp…
…t 2) This change removes the implementation of `dart:js` for dart2wasm. The code is no longer in use and the compiler already provides a static error if you import `dart:js` internally. By removing the implementation from the libraries.json spec, we also show this as unaccessible on conditional imports. This will allow developers to distinguish JS and Wasm backends This adapts the original implementation in https://dart-review.googlesource.com/c/sdk/+/368642 with a few small changes, but keeps around the existing allowances on `package:js`. Those can be addressed separately to reduce the disruption from this change. Closes #55266. Change-Id: I0d01a424f2fdb4f48879bd1a41c847a92439e74a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380583 Reviewed-by: Ömer Ağacan <omersa@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
- Loading branch information
Showing
7 changed files
with
13 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters