| Index: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| index bbce58a28536a7dc6a33645df781061ec2993511..be681d730bdc3a583666f3f951b388ca480157ed 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
|
| @@ -456,7 +456,7 @@ class OldEmitter implements Emitter {
|
| return js(r'var inheritFrom = #', [result]);
|
| }
|
|
|
| - jsAst.Statement buildFinishClass(bool hasNativeClasses) {
|
| + jsAst.Statement buildFinishClass(bool needsNativeSupport) {
|
| String specProperty = '"${namer.nativeSpecProperty}"'; // "%"
|
|
|
| jsAst.Expression finishedClassesAccess =
|
| @@ -524,13 +524,13 @@ class OldEmitter implements Emitter {
|
| var constructor = allClasses[cls];
|
| var prototype = inheritFrom(constructor, superConstructor);
|
|
|
| - if (#hasNativeClasses)
|
| + if (#needsNativeSupport)
|
| if (Object.prototype.hasOwnProperty.call(prototype, $specProperty))
|
| #nativeInfoHandler
|
| }
|
| }''', {'finishedClassesAccess': finishedClassesAccess,
|
| 'needsMixinSupport': needsMixinSupport,
|
| - 'hasNativeClasses': hasNativeClasses,
|
| + 'needsNativeSupport': needsNativeSupport,
|
| 'nativeInfoHandler': nativeInfoHandler});
|
| }
|
|
|
| @@ -1418,11 +1418,11 @@ class OldEmitter implements Emitter {
|
| elementDescriptors.remove(library);
|
| }
|
|
|
| - bool hasNativeClasses = program.outputContainsNativeClasses;
|
| + bool needsNativeSupport = program.needsNativeSupport;
|
| mainOutput
|
| ..addBuffer(
|
| jsAst.prettyPrint(
|
| - getReflectionDataParser(this, backend, hasNativeClasses),
|
| + getReflectionDataParser(this, backend, needsNativeSupport),
|
| compiler))
|
| ..add(n);
|
|
|
|
|