Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b2e7e49

Browse files
authored
add the dart:__interceptors library to the dart sdk (#13125)
1 parent 81505c4 commit b2e7e49

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

sky/packages/sky_engine/BUILD.gn

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import("//build/fuchsia/sdk.gni")
66
import("//third_party/dart/sdk/lib/_http/http_sources.gni")
7+
import("//third_party/dart/sdk/lib/_internal/js_runtime/interceptors_sources.gni")
78
import("//third_party/dart/sdk/lib/async/async_sources.gni")
89
import("//third_party/dart/sdk/lib/collection/collection_sources.gni")
910
import("//third_party/dart/sdk/lib/convert/convert_sources.gni")
@@ -84,6 +85,14 @@ copy("_http") {
8485
]
8586
}
8687

88+
copy("_interceptors") {
89+
lib_path = rebase_path("_internal/js_runtime", "", dart_sdk_lib_path)
90+
sources = rebase_path(interceptors_sdk_sources, "", lib_path)
91+
outputs = [
92+
"$root_gen_dir/dart-pkg/sky_engine/lib/_interceptors/{{source_file_part}}",
93+
]
94+
}
95+
8796
copy("internal") {
8897
lib_path = rebase_path("internal", "", dart_sdk_lib_path)
8998
sources = rebase_path(internal_sdk_sources, "", lib_path)
@@ -175,6 +184,7 @@ copy("copy_dart_ui") {
175184
group("copy_dart_sdk") {
176185
deps = [
177186
":_http",
187+
":_interceptors",
178188
":async",
179189
":collection",
180190
":convert",

sky/packages/sky_engine/lib/_embedder.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ embedded_libs:
1515
"dart:ui": "ui/ui.dart"
1616
"dart:wasm": "wasm/wasm.dart"
1717

18-
# The internal library is needed as some implementations bleed into the
18+
"dart:_http": "_http/http.dart"
19+
"dart:_interceptors": "_interceptors/interceptors.dart"
20+
# The _internal library is needed as some implementations bleed into the
1921
# public API, e.g. List being Iterable by virtue of implementing
2022
# EfficientLengthIterable. Not including this library yields analysis errors.
2123
"dart:_internal": "internal/internal.dart"
22-
"dart:_http": "_http/http.dart"
2324
"dart:nativewrappers": "_empty.dart"

0 commit comments

Comments
 (0)