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

Unified Diff: tests/compiler/dart2js/jsinterop/world_test.dart

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements Created 3 years, 6 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
Index: tests/compiler/dart2js/jsinterop/world_test.dart
diff --git a/tests/compiler/dart2js/jsinterop/world_test.dart b/tests/compiler/dart2js/jsinterop/world_test.dart
index aab1b1e206e1cb1d9ffa1e1036d73bb0481e839f..6b24ecb6062d69c3569fc52b108b1c486a8d35ad 100644
--- a/tests/compiler/dart2js/jsinterop/world_test.dart
+++ b/tests/compiler/dart2js/jsinterop/world_test.dart
@@ -91,12 +91,11 @@ $mainSource
ClosedWorld world = env.closedWorld;
JavaScriptBackend backend = env.compiler.backend;
- ClassElement Object_ =
- registerClass(env.compiler.commonElements.objectClass);
+ ClassElement Object_ = registerClass(world.commonElements.objectClass);
ClassElement Interceptor =
- registerClass(env.compiler.commonElements.jsInterceptorClass);
+ registerClass(world.commonElements.jsInterceptorClass);
ClassElement JavaScriptObject =
- registerClass(env.compiler.commonElements.jsJavaScriptObjectClass);
+ registerClass(world.commonElements.jsJavaScriptObjectClass);
ClassElement A = registerClass(env.getElement('A'));
ClassElement B = registerClass(env.getElement('B'));
ClassElement C = registerClass(env.getElement('C'));
« no previous file with comments | « tests/compiler/dart2js/expect_annotations_test.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698