| Index: pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart
|
| diff --git a/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart b/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart
|
| index 6aafacda89e55a1c01dfb8293d0d17f53d156e66..7a5fa622b16c9e63367e8cc3abc43f498015bc1e 100644
|
| --- a/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart
|
| +++ b/pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart
|
| @@ -14,7 +14,8 @@ import 'dart:_js_helper' show patch,
|
| Primitives,
|
| stringJoinUnchecked,
|
| objectHashCode,
|
| - getTraceFromException;
|
| + getTraceFromException,
|
| + NoInline;
|
|
|
| import 'dart:_foreign_helper' show JS;
|
|
|
| @@ -29,8 +30,10 @@ int identityHashCode(Object object) => objectHashCode(object);
|
| @patch
|
| class Object {
|
| @patch
|
| - int get hashCode => Primitives.objectHashCode(this);
|
| + bool operator==(other) => identical(this, other);
|
|
|
| + @patch
|
| + int get hashCode => Primitives.objectHashCode(this);
|
|
|
| @patch
|
| String toString() => Primitives.objectToString(this);
|
| @@ -49,6 +52,12 @@ class Object {
|
| JS('Type', 'dart.wrapType(dart.getReifiedType(#))', this);
|
| }
|
|
|
| +@patch
|
| +class Null {
|
| + @patch
|
| + int get hashCode => super.hashCode;
|
| +}
|
| +
|
| // Patch for Function implementation.
|
| @patch
|
| class Function {
|
| @@ -149,6 +158,18 @@ class Error {
|
| StackTrace get stackTrace => Primitives.extractStackTrace(this);
|
| }
|
|
|
| +@patch
|
| +class FallThroughError {
|
| + @patch
|
| + String toString() => super.toString();
|
| +}
|
| +
|
| +@patch
|
| +class AbstractClassInstantiationError {
|
| + @patch
|
| + String toString() => "Cannot instantiate abstract class: '$_className'";
|
| +}
|
| +
|
| /// An interface type for all Strong-mode errors.
|
| class StrongModeError extends Error {}
|
|
|
| @@ -420,6 +441,9 @@ class bool {
|
| throw new UnsupportedError(
|
| 'bool.fromEnvironment can only be used as a const constructor');
|
| }
|
| +
|
| + @patch
|
| + int get hashCode => super.hashCode;
|
| }
|
|
|
| @patch
|
| @@ -506,6 +530,18 @@ class StringBuffer {
|
| @patch
|
| class NoSuchMethodError {
|
| @patch
|
| + NoSuchMethodError(Object receiver,
|
| + Symbol memberName,
|
| + List positionalArguments,
|
| + Map<Symbol, dynamic> namedArguments,
|
| + [List existingArgumentNames = null])
|
| + : _receiver = receiver,
|
| + _memberName = memberName,
|
| + _arguments = positionalArguments,
|
| + _namedArguments = namedArguments,
|
| + _existingArgumentNames = existingArgumentNames;
|
| +
|
| + @patch
|
| String toString() {
|
| StringBuffer sb = new StringBuffer();
|
| int i = 0;
|
| @@ -554,15 +590,17 @@ class NoSuchMethodError {
|
| @patch
|
| class Uri {
|
| @patch
|
| - static bool get _isWindows => false;
|
| -
|
| - @patch
|
| static Uri get base {
|
| String uri = Primitives.currentUri();
|
| if (uri != null) return Uri.parse(uri);
|
| throw new UnsupportedError("'Uri.base' is not supported");
|
| }
|
| +}
|
|
|
| +@patch
|
| +class _Uri {
|
| + @patch
|
| + static bool get _isWindows => false;
|
|
|
| // Matches a String that _uriEncodes to itself regardless of the kind of
|
| // component. This corresponds to [_unreservedTable], i.e. characters that
|
| @@ -585,7 +623,7 @@ class Uri {
|
|
|
| // Encode the string into bytes then generate an ASCII only string
|
| // by percent encoding selected bytes.
|
| - StringBuffer result = new StringBuffer();
|
| + StringBuffer result = new StringBuffer('');
|
| var bytes = encoding.encode(text);
|
| for (int i = 0; i < bytes.length; i++) {
|
| int byte = bytes[i];
|
|
|