mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
58c84272bc
These libraries will be shared between the dart2js and DDC runtimes. Also renames the `shared` directory to `synced` to avoid confusion. Synced directories are copied to be in sync with the compilers and runtimes. Change-Id: Ic36076938741d7102792f09413666de0033da3a4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238300 Reviewed-by: Mayank Patke <fishythefish@google.com> Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com> Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Nate Bosch <nbosch@google.com>
534 B
534 B
Package js_shared
:
This code is a compile time dependency of dart2js and DDC. It is imported as
a package:
import by both compilers.
There is an exact copy in the SDK of the libraries in the
pkg/js_shared/lib/synced
sub-directory.
Those libraries are imported as dart:
imports by the dart2js and DDC runtime
libraries.
Important: all code under pkg/js_shared/lib/synced
must be kept in sync with
the runtime (in sdk/lib/_internal/js_shared/lib/synced
) at all times. The
test/in_sync_test.dart
test verifies this.