| Index: runtime/lib/simd128.cc
|
| diff --git a/runtime/lib/simd128.cc b/runtime/lib/simd128.cc
|
| index e21655597fe97ca7d54b1a5ee47dc6826b0b2fa1..b9bf55cd37210e16148c286210e5c57a1eeffb00 100644
|
| --- a/runtime/lib/simd128.cc
|
| +++ b/runtime/lib/simd128.cc
|
| @@ -13,12 +13,8 @@ namespace dart {
|
|
|
| static void ThrowMaskRangeException(int64_t m) {
|
| if ((m < 0) || (m > 255)) {
|
| - const String& error = String::Handle(
|
| - String::NewFormatted("mask (%" Pd64 ") must be in the range [0..256)",
|
| - m));
|
| - const Array& args = Array::Handle(Array::New(1));
|
| - args.SetAt(0, error);
|
| - Exceptions::ThrowByType(Exceptions::kRange, args);
|
| + Exceptions::ThrowRangeError(
|
| + "mask", Integer::Handle(Integer::New(m)), 0, 256);
|
| }
|
| }
|
|
|
|
|