| Index: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
|
| index 93241b7f705585424d66301d5b8c4b585d3c8c00..2f81f2d981126de5a93d3f680db7a081043b5261 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
|
| @@ -1381,16 +1381,15 @@ mainBuffer.add(r'''
|
| emitFinishClassesInvocationIfNecessary(mainBuffer);
|
| classesCollector = oldClassesCollector;
|
| }
|
| -
|
| - typeTestEmitter.emitRuntimeTypeSupport(mainBuffer);
|
| + OutputUnit mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit;
|
| + typeTestEmitter.emitRuntimeTypeSupport(mainBuffer, mainOutputUnit);
|
| interceptorEmitter.emitGetInterceptorMethods(mainBuffer);
|
| interceptorEmitter.emitOneShotInterceptors(mainBuffer);
|
| // Constants in checked mode call into RTI code to set type information
|
| // which may need getInterceptor (and one-shot interceptor) methods, so
|
| // we have to make sure that [emitGetInterceptorMethods] and
|
| // [emitOneShotInterceptors] have been called.
|
| - emitCompileTimeConstants(
|
| - mainBuffer, compiler.deferredLoadTask.mainOutputUnit);
|
| + emitCompileTimeConstants(mainBuffer, mainOutputUnit);
|
|
|
| // We write a javascript mapping from DeferredLibrary elements
|
| // (really their String argument) to the js hunk to load.
|
| @@ -1569,6 +1568,8 @@ if (typeof $printHelperName === "function") {
|
|
|
| classesCollector = oldClassesCollector;
|
|
|
| + typeTestEmitter.emitRuntimeTypeSupport(buffer, outputUnit);
|
| +
|
| emitCompileTimeConstants(buffer, outputUnit);
|
|
|
| String code = buffer.getText();
|
|
|