| Index: dart/lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/dart/lib/compiler/implementation/lib/js_helper.dart b/dart/lib/compiler/implementation/lib/js_helper.dart
|
| index 47c81bf78cac4b474f3047e8fff9b68fbc4ad08e..bec987b362545deba6032753665afddf710a5efd 100644
|
| --- a/dart/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/dart/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -389,7 +389,10 @@ class Primitives {
|
| return;
|
| }
|
|
|
| - throw 'Unable to print message: ${NoSuchMethodError.safeToString(string)}';
|
| + // This is somewhat nasty, but we don't want to drag in a bunch of
|
| + // dependencies to handle a situation that cannot happen. So we
|
| + // avoid using Dart [:throw:] and Dart [toString].
|
| + JS('void', "throw 'Unable to print message: ' + String(#)", string);
|
| }
|
|
|
| static int parseInt(String string) {
|
|
|