| Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index e502f250bf7fed1141a5ba8c4230a62406e86f1d..8896b991262d6438f6b6d486d841e18dec40aac7 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -2883,16 +2883,6 @@ if (typeof document !== "undefined" && document.readyState !== "complete") {
|
| js.if_(js('receiver instanceof #',
|
| js(namer.isolateAccess(compiler.objectClass))),
|
| js.return_(js('receiver'))));
|
| -
|
| - // TODO(sra): Fold this 'Object' check into the `getNativeInterceptor`
|
| - // check by patching `Object.prototype` with a special hook function.
|
| - // TODO(9556): This test is needed in plain non-browser code because
|
| - // 'holders' are not Dart classes.
|
| - block.statements.add(
|
| - js.if_(
|
| - js('Object.getPrototypeOf(receiver) === Object.prototype'),
|
| - buildReturnInterceptor(backend.jsInterceptorClass)));
|
| -
|
| block.statements.add(
|
| js.return_(
|
| js(namer.isolateAccess(backend.getNativeInterceptorMethod))(
|
|
|