| Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| index d2f38367b381e9d4d357e4e6a715f45953074e96..edbbc6d8cfdb4c04ba2a713dda830440b5013600 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart
|
| @@ -224,7 +224,7 @@ class JSInvocationMirror implements Invocation {
|
| var receiver = object;
|
| var name = _internalName;
|
| var arguments = _arguments;
|
| - var embeddedInterceptedNames = JS_EMBEDDED_GLOBAL('', INTERCEPTED_NAMES);
|
| + var interceptedNames = JS_EMBEDDED_GLOBAL('', INTERCEPTED_NAMES);
|
| // TODO(ngeoffray): If this functionality ever become performance
|
| // critical, we might want to dynamically change [interceptedNames]
|
| // to be a JavaScript object with intercepted names as property
|
| @@ -233,9 +233,8 @@ class JSInvocationMirror implements Invocation {
|
| // in the embedded global interceptedNames.
|
| // Finish the transition and always use the object as hashtable.
|
| bool isIntercepted =
|
| - JS("bool",
|
| - 'Object.prototype.hasOwnProperty.call(#, #) || #.indexOf(#) !== -1',
|
| - embeddedInterceptedNames, name, interceptedNames, name);
|
| + JS("bool", 'Object.prototype.hasOwnProperty.call(#, #)',
|
| + interceptedNames, name);
|
| if (isIntercepted) {
|
| receiver = interceptor;
|
| if (JS('bool', '# === #', object, interceptor)) {
|
|
|