| Index: runtime/lib/math_patch.dart
|
| diff --git a/runtime/lib/math_patch.dart b/runtime/lib/math_patch.dart
|
| index 45eb5ef7037e5d78fc1e7cf638e444fa50c2bb05..5942078f8a90539bfd526a110aba9d7a63352592 100644
|
| --- a/runtime/lib/math_patch.dart
|
| +++ b/runtime/lib/math_patch.dart
|
| @@ -114,8 +114,6 @@ class _Random implements Random {
|
| void _nextState() native "Random_nextState";
|
|
|
| int nextInt(int max) {
|
| - // TODO(srdjan): Remove the 'limit' check once optimizing comparison of
|
| - // Smi-s with Mint constants.
|
| final limit = 0x3FFFFFFF;
|
| if (max <= 0 || ((max > limit) && (max > _POW2_32))) {
|
| throw new ArgumentError("max must be positive and < 2^32:"
|
|
|