Index: sdk/lib/_internal/compiler/js_lib/convert_patch.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/convert_patch.dart b/sdk/lib/_internal/compiler/js_lib/convert_patch.dart |
index bb4443e4775b42f8810cce51f8ae56bd76f73df4..1b987ed42363feac303c7f03ecec37f8d73ee0eb 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/convert_patch.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/convert_patch.dart |
@@ -4,7 +4,7 @@ |
// Patch file for dart:convert library. |
-import 'dart:_js_helper' show patch; |
+import 'dart:_js_helper' show argumentErrorValue, patch; |
import 'dart:_foreign_helper' show JS; |
import 'dart:_interceptors' show JSExtendableArray; |
import 'dart:_internal' show MappedIterable, ListIterable; |
@@ -28,7 +28,7 @@ import 'dart:collection' show Maps, LinkedHashMap; |
*/ |
@patch |
_parseJson(String source, reviver(key, value)) { |
- if (source is! String) throw new ArgumentError(source); |
+ if (source is! String) throw argumentErrorValue(source); |
var parsed; |
try { |