Index: runtime/lib/double.dart |
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart |
index aee84e23bc74334e383864da1cc1359eb2bb1d1f..f4025f3b745ed90d6c66233c91568357720d57a6 100644 |
--- a/runtime/lib/double.dart |
+++ b/runtime/lib/double.dart |
@@ -114,9 +114,7 @@ class _Double implements double { |
if (exponent == 0) { |
return 1.0; // ECMA-262 15.8.2.13 |
} |
- if (exponent is! num) { |
- throw new ArgumentError(null); |
- } |
+ // Throw NullPointerException if exponent is null. |
double doubleExponent = exponent.toDouble(); |
if (isNaN || exponent.isNaN) { |
return double.NAN; |