anchor.diff:    }
   
     if (JS('bool', r'# instanceof RangeError', ex)) {
  -    if (message is String && message.contains('call stack')) {
  +    if (message is String && contains(message, 'call stack')) {
         return new StackOverflowError();
       }
   
  
positive.code:     // exception occurred.
      var type = JS('var', r'#.type', ex);
      var name = JS('var', r'#.arguments ? #.arguments[0] : ""', ex, ex);
      if (message.contains('JSNull') ||
          type == 'property_not_function' ||
          type == 'called_non_callable' ||
          type == 'non_object_property_call' ||
  
negative.code:           message.endsWith('is undefined') ||
            message.endsWith('is null or undefined')) {
          return new NoSuchMethodError(null, '<unknown>', [], {});
        } else if (contains(message, ' is not a function') ||
                   (ieErrorCode == 438 && ieFacilityNumber == 10)) {
          // Examples:
          //  x.foo is not a function
  