| Index: sdk/lib/_internal/compiler/js_lib/interceptors.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/interceptors.dart b/sdk/lib/_internal/compiler/js_lib/interceptors.dart
|
| index 22e2e91434e45e05f9bbf9ae663b06c1c719cfe0..512b172e321b524dc8fa33cfe86f4619f671299b 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/interceptors.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/interceptors.dart
|
| @@ -5,7 +5,8 @@
|
| library _interceptors;
|
|
|
| import 'dart:_js_embedded_names' show
|
| - DISPATCH_PROPERTY_NAME;
|
| + DISPATCH_PROPERTY_NAME,
|
| + MAP_TYPE_TO_INTERCEPTOR;
|
|
|
| import 'dart:collection';
|
| import 'dart:_internal' hide Symbol;
|
| @@ -196,8 +197,9 @@ var interceptedNames;
|
| * is accessed only by code that also calls [findIndexForWebComponentType]. If
|
| * this assumption is invalidated, the compiler will have to be updated.
|
| */
|
| -// TODO(sra): Mark this as initialized to a constant with unknown value.
|
| -var mapTypeToInterceptor;
|
| +get mapTypeToInterceptor {
|
| + return JS_EMBEDDED_GLOBAL('', MAP_TYPE_TO_INTERCEPTOR);
|
| +}
|
|
|
| int findIndexForNativeSubclassType(Type type) {
|
| if (JS('bool', '# == null', mapTypeToInterceptor)) return null;
|
|
|