dart-sdk/pkg/js_runtime
Stephen Adams b8d85b7ad3 [dart2js] loadLibrary priority annotation
Add annotations

    @pragma('dart2js:load-priority:normal')
    @pragma('dart2js:load-priority:high')

The test shows that these annotations are scoped.

This CL is just plumbing the annotation through as an argument to the runtime call to the code that implements `loadLibrary()`. Actual prioritization is not yet implemented.

Change-Id: Iff1404baf34192139dab95e2dbb01c2d4e8dae45
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/270283
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-11-18 19:22:29 +00:00
..
lib/synced [dart2js] loadLibrary priority annotation 2022-11-18 19:22:29 +00:00
test [web] Cleanup redundant language version comments 2022-05-26 20:19:09 +00:00
analysis_options.yaml [pkg] use package:lints for pkg/_js_interop_checks, pkg/js_runtime 2022-07-18 17:27:53 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
pubspec.yaml [pkg] use package:lints for pkg/_js_interop_checks, pkg/js_runtime 2022-07-18 17:27:53 +00:00
README.md [web] Move libraries to a shared location 2022-05-18 19:59:33 +00:00

Package js_runtime:

This package contains code that is shared between the dart2js compiler and the dart2js runtime libraries.

Important: all code under the lib/synced/ must be kept in sync with the runtime at all times (in sdk/lib/_internal/js_runtime/lib/synced). The test/in_sync_test.dart test verifies this.