| Index: src/typedarray.js
|
| diff --git a/src/typedarray.js b/src/typedarray.js
|
| index 4420bce4bc8dd8a2acc5740095e5f8e9d7ef323b..caa428cc91cb8b454015eea32180721521a4306e 100644
|
| --- a/src/typedarray.js
|
| +++ b/src/typedarray.js
|
| @@ -162,16 +162,16 @@ function NAMESubArray(begin, end) {
|
|
|
| var srcLength = %_TypedArrayGetLength(this);
|
| if (beginInt < 0) {
|
| - beginInt = MathMax(0, srcLength + beginInt);
|
| + beginInt = $max(0, srcLength + beginInt);
|
| } else {
|
| - beginInt = MathMin(srcLength, beginInt);
|
| + beginInt = $min(srcLength, beginInt);
|
| }
|
|
|
| var endInt = IS_UNDEFINED(end) ? srcLength : end;
|
| if (endInt < 0) {
|
| - endInt = MathMax(0, srcLength + endInt);
|
| + endInt = $max(0, srcLength + endInt);
|
| } else {
|
| - endInt = MathMin(endInt, srcLength);
|
| + endInt = $min(endInt, srcLength);
|
| }
|
| if (endInt < beginInt) {
|
| endInt = beginInt;
|
|
|