File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,13 @@ class VmTarget extends Target {
349
349
]));
350
350
}
351
351
352
+ // In addition to the default implementation, we allow VM tests to import
353
+ // private platform libraries - such as `dart:_internal` - for testing
354
+ // purposes.
355
+ bool allowPlatformPrivateLibraryAccess (Uri importer, Uri imported) =>
356
+ super .allowPlatformPrivateLibraryAccess (importer, imported) ||
357
+ importer.path.contains ('runtime/tests/vm/dart' );
358
+
352
359
// TODO(sigmund,ahe): limit this to `dart-ext` libraries only (see
353
360
// https://github.com/dart-lang/sdk/issues/29763).
354
361
@override
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ import 'dart:_internal' ;
6
+
7
+ void main (List <String > args) {
8
+ // Ensure we can import and use members of `dart:_internal`.
9
+ print (unsafeCast);
10
+ }
You can’t perform that action at this time.
0 commit comments