Index: sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart |
index dfcd6343603603c57b42c4dcec5888782e8dcf62..87adcab3f8d2f6c48a357a564ca7018f9aa1c3f2 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart |
@@ -426,27 +426,6 @@ class NativeEmitter { |
objectProperties.add(new jsAst.Property(js.string(name), value)); |
} |
- // Because of native classes, we have to generate some is checks |
- // by calling a method, instead of accessing a property. So we |
- // attach to the JS Object prototype these methods that return |
- // false, and will be overridden by subclasses when they have to |
- // return true. |
- void emitIsChecks() { |
- for (ClassElement element in |
- Elements.sortedByPosition(emitter.checkedClasses)) { |
- if (!requiresNativeIsCheck(element)) continue; |
- if (element.isObject(compiler)) continue; |
- // Add function for the is-test. |
- String name = backend.namer.operatorIs(element); |
- addProperty(name, |
- js.fun([], js.return_(js('false')))); |
- // Add a function for the (trivial) substitution. |
- addProperty(backend.namer.substitutionName(element), |
- js.fun([], js.return_(js('null')))); |
- } |
- } |
- emitIsChecks(); |
- |
if (!nativeClasses.isEmpty) { |
// If the native emitter has been asked to take care of the |
// noSuchMethod handlers, we do that now. |