OLD | NEW |
---|---|
(Empty) | |
1 <script> | |
2 import "dart:mirrors"; | |
3 import "dart:sky.internals" as internals; | |
4 | |
5 // Regression test for the embedder not setting up the root library. | |
6 // Used to crash. | |
7 | |
8 void main() { | |
9 if (currentMirrorSystem().isolate.rootLibrary == null) { | |
10 throw "Missing root library"; | |
11 } | |
12 internals.notifyTestComplete("PASS"); | |
13 } | |
14 </script>> | |
OLD | NEW |