Index: src/js/collection.js |
diff --git a/src/js/collection.js b/src/js/collection.js |
index 221f0e107831a486599ccb00f7e18dc4e728364b..6d75f4a5bd7646607fa4e6dd6b5317715c699f4c 100644 |
--- a/src/js/collection.js |
+++ b/src/js/collection.js |
@@ -248,8 +248,10 @@ |
var iterator = new SetIterator(this, ITERATOR_KIND_VALUES); |
var key; |
+ var stepping = DEBUG_IS_STEPPING(f); |
var value_array = [UNDEFINED]; |
while (%SetIteratorNext(iterator, value_array)) { |
+ if (stepping) %DebugPrepareStepInIfStepping(f); |
key = value_array[0]; |
%_Call(f, receiver, key, key, this); |
} |
@@ -429,8 +431,10 @@ |
if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); |
var iterator = new MapIterator(this, ITERATOR_KIND_ENTRIES); |
+ var stepping = DEBUG_IS_STEPPING(f); |
var value_array = [UNDEFINED, UNDEFINED]; |
while (%MapIteratorNext(iterator, value_array)) { |
+ if (stepping) %DebugPrepareStepInIfStepping(f); |
%_Call(f, receiver, value_array[1], value_array[0], this); |
} |
} |