Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index 0a26a094d6569d97dc3205c59351367625be712e..50bb4311ffb010d1fb43ae410d08c553445ae933 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -42,6 +42,7 @@ const String DEFAULT_HELPERLIB = r''' |
stringTypeCheck(x) {} |
boolConversionCheck(x) {} |
abstract class JavaScriptIndexingBehavior {} |
+ class JSInvocationMirror {} |
S() {} |
assertHelper(a){}'''; |
@@ -92,6 +93,7 @@ class MockCompiler extends Compiler { |
// We need to set the assert method to avoid calls with a 'null' |
// target being interpreted as a call to assert. |
jsHelperLibrary = createLibrary("helper", helperSource); |
+ importHelperLibrary(coreLibrary); |
assertMethod = jsHelperLibrary.find(buildSourceString('assert')); |
interceptorsLibrary = createLibrary("interceptors", interceptorsSource); |