| Index: dart/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
|
| diff --git a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
|
| index b75c82efd625b4ce4e92fd7854e73fac879c2c36..2db15c7c26286c0f4c8787b561d12b6fbb3f2915 100644
|
| --- a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
|
| +++ b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
|
| @@ -280,15 +280,29 @@ jsAst.Expression getReflectionDataParser(String classesCollector,
|
| mangledNamesAccess,
|
| mangledGlobalNamesAccess]);
|
|
|
| + List<jsAst.Statement> incrementalSupport = <jsAst.Statement>[];
|
| + if (compiler.hasIncrementalSupport) {
|
| + incrementalSupport.add(
|
| + js.statement(
|
| + r'self.$dart_unsafe_eval.addStubs = addStubs;'));
|
| + }
|
| +
|
| return js('''
|
| (function (reflectionData) {
|
| "use strict";
|
| - #; // header
|
| - #; // processStatics
|
| - #; // addStubs
|
| - #; // tearOffCode
|
| - #; // init
|
| -})''', [header, processStatics, addStubs, tearOffCode, init]);
|
| + #header;
|
| + #processStatics;
|
| + #addStubs;
|
| + #tearOffCode;
|
| + #incrementalSupport;
|
| + #init;
|
| +})''', {
|
| + 'header': header,
|
| + 'processStatics': processStatics,
|
| + 'incrementalSupport': incrementalSupport,
|
| + 'addStubs': addStubs,
|
| + 'tearOffCode': tearOffCode,
|
| + 'init': init});
|
| }
|
|
|
|
|
|
|