Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: sky/tests/dart/mirror-system.sky

Issue 1088263004: Ensure isolates have a root library so createMirrorSystem() and spawnUri() are happy. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | sky/tests/dart/mirror-system-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/dart/mirror-system.sky
diff --git a/sky/tests/dart/mirror-system.sky b/sky/tests/dart/mirror-system.sky
new file mode 100644
index 0000000000000000000000000000000000000000..7d751e516dca32b0e303735a73d66d78624ed697
--- /dev/null
+++ b/sky/tests/dart/mirror-system.sky
@@ -0,0 +1,14 @@
+<script>
+import "dart:mirrors";
+import "dart:sky.internals" as internals;
+
+// Regression test for the embedder not setting up the root library.
+// Used to crash.
+
+void main() {
+ if (currentMirrorSystem().isolate.rootLibrary == null) {
+ throw "Missing root library";
+ }
+ internals.notifyTestComplete("PASS");
+}
+</script>>
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | sky/tests/dart/mirror-system-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698