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

Unified Diff: tests/compiler/dart2js_native/compute_this_script_test.dart

Issue 167493002: Make sure isolate library is initialized before using isolate natives. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | tests/compiler/dart2js_native/dart2js_native.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_native/compute_this_script_test.dart
diff --git a/tests/compiler/dart2js_native/compute_this_script_test.dart b/tests/compiler/dart2js_native/compute_this_script_test.dart
index 55092b404ed669a41c3b21a8455f7c3f8375649d..e8316e82e9fd901dd5aa4bb1e81def6f9a7c953f 100644
--- a/tests/compiler/dart2js_native/compute_this_script_test.dart
+++ b/tests/compiler/dart2js_native/compute_this_script_test.dart
@@ -5,8 +5,14 @@
// Test of IsolateNatives.computeThisScript().
import 'dart:_isolate_helper';
+// The isolate helper library is not correctly set up if the dart:isolate
+// library hasn't been loaded.
+import 'dart:isolate';
main() {
+ // Need to use the isolate-library so dart2js correctly initializes the
+ // library.
+ Capability cab = new Capability();
String script = IsolateNatives.computeThisScript();
// This is somewhat brittle and relies on an implementation detail
« no previous file with comments | « sdk/lib/_internal/lib/isolate_helper.dart ('k') | tests/compiler/dart2js_native/dart2js_native.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698