Index: src/js/array.js |
diff --git a/src/js/array.js b/src/js/array.js |
index 462e5281374689929ff2fadb8e241ff6a38ba114..2c5d377cf5e0162d88b57236cf5eafd4ff19a33b 100644 |
--- a/src/js/array.js |
+++ b/src/js/array.js |
@@ -1179,7 +1179,7 @@ function InnerArrayFilter(f, receiver, array, length) { |
var accumulator = new InternalArray(); |
var accumulator_length = 0; |
var is_array = IS_ARRAY(array); |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); |
+ var stepping = DEBUG_IS_STEPPING(f); |
for (var i = 0; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1210,7 +1210,7 @@ function InnerArrayForEach(f, receiver, array, length) { |
if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); |
var is_array = IS_ARRAY(array); |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); |
+ var stepping = DEBUG_IS_STEPPING(f); |
for (var i = 0; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1236,7 +1236,7 @@ function InnerArraySome(f, receiver, array, length) { |
if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); |
var is_array = IS_ARRAY(array); |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); |
+ var stepping = DEBUG_IS_STEPPING(f); |
for (var i = 0; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1266,7 +1266,7 @@ function InnerArrayEvery(f, receiver, array, length) { |
if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); |
var is_array = IS_ARRAY(array); |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); |
+ var stepping = DEBUG_IS_STEPPING(f); |
for (var i = 0; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1294,7 +1294,7 @@ function InnerArrayMap(f, receiver, array, length) { |
var accumulator = new InternalArray(length); |
var is_array = IS_ARRAY(array); |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); |
+ var stepping = DEBUG_IS_STEPPING(f); |
for (var i = 0; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1463,7 +1463,7 @@ function InnerArrayReduce(callback, current, array, length, argumentsLength) { |
throw MakeTypeError(kReduceNoInitial); |
} |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(callback); |
+ var stepping = DEBUG_IS_STEPPING(callback); |
for (; i < length; i++) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |
@@ -1506,7 +1506,7 @@ function InnerArrayReduceRight(callback, current, array, length, |
throw MakeTypeError(kReduceNoInitial); |
} |
- var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(callback); |
+ var stepping = DEBUG_IS_STEPPING(callback); |
for (; i >= 0; i--) { |
if (HAS_INDEX(array, i, is_array)) { |
var element = array[i]; |