Index: runtime/lib/math_patch.dart |
diff --git a/runtime/lib/math_patch.dart b/runtime/lib/math_patch.dart |
index 89460cc394afe746a87413747eebed0174879bba..f44e7b10f50879617bc9e1873b5e7b8d34dedba8 100644 |
--- a/runtime/lib/math_patch.dart |
+++ b/runtime/lib/math_patch.dart |
@@ -20,9 +20,7 @@ double _doublePow(double base, num exponent) { |
if (exponent == 0) { |
return 1.0; // ECMA-262 15.8.2.13 |
} |
- if (exponent is! num) { |
- throw new ArgumentError(null); |
- } |
+ if (base == 1.0) return 1.0; |
double doubleExponent = exponent.toDouble(); |
if (base.isNaN || exponent.isNaN) { |
return double.NAN; |