Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
index 35a6b776acd439aa409aeab2e908610b72c6c869..4ad99ddbd1ca6afe1148a8b70bda006d1d23a20e 100644 |
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
@@ -208,7 +208,8 @@ class ModelEmitter { |
Map<String, dynamic> holes = { |
'deferredInitializer': emitDeferredInitializerGlobal(program.loadMap), |
'holders': emitHolders(program.holders), |
- 'tearOff': buildTearOffCode(backend), |
+ 'tearOff': buildTearOffCode(compiler.options, backend.emitter.emitter, |
+ backend.namer, compiler.commonElements), |
'parseFunctionDescriptor': |
js.js.statement(parseFunctionDescriptorBoilerplate, { |
'argumentCount': js.string(namer.requiredParameterField), |