Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: sdk/lib/_internal/compiler/js_lib/native_typed_data.dart

Issue 1132603003: Change RangeError instances to use RangeError.range. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/lib/typed_data.dart ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/native_typed_data.dart b/sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
index 84b25bc52c1d630b83202a160314f1c34bb2b4ba..1c6e35735713b395a1ef1448577c9e5649a21fc8 100644
--- a/sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
+++ b/sdk/lib/_internal/compiler/js_lib/native_typed_data.dart
@@ -1542,7 +1542,7 @@ class NativeFloat32x4 implements Float32x4 {
/// Shuffle the lane values. [mask] must be one of the 256 shuffle constants.
Float32x4 shuffle(int m) {
if ((m < 0) || (m > 255)) {
- throw new RangeError('mask $m must be in the range [0..256)');
+ throw new RangeError('mask $m must be in the range [0..255]');
}
_list[0] = x;
_list[1] = y;
@@ -1561,7 +1561,7 @@ class NativeFloat32x4 implements Float32x4 {
/// Uses the same [mask] as [shuffle].
Float32x4 shuffleMix(Float32x4 other, int m) {
if ((m < 0) || (m > 255)) {
- throw new RangeError('mask $m must be in the range [0..256)');
+ throw new RangeError('mask $m must be in the range [0..255]');
}
_list[0] = x;
_list[1] = y;
@@ -1763,7 +1763,7 @@ class NativeInt32x4 implements Int32x4 {
/// Shuffle the lane values. [mask] must be one of the 256 shuffle constants.
Int32x4 shuffle(int mask) {
if ((mask < 0) || (mask > 255)) {
- throw new RangeError('mask $mask must be in the range [0..256)');
+ throw new RangeError('mask $mask must be in the range [0..255]');
}
_list[0] = x;
_list[1] = y;
@@ -1781,7 +1781,7 @@ class NativeInt32x4 implements Int32x4 {
/// Uses the same [mask] as [shuffle].
Int32x4 shuffleMix(Int32x4 other, int mask) {
if ((mask < 0) || (mask > 255)) {
- throw new RangeError('mask $mask must be in the range [0..256)');
+ throw new RangeError('mask $mask must be in the range [0..255]');
}
_list[0] = x;
_list[1] = y;
« runtime/lib/typed_data.dart ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698