| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 3683)
|
| +++ src/debug.cc (working copy)
|
| @@ -1695,9 +1695,7 @@
|
| // Scan heap for Script objects.
|
| int count = 0;
|
| HeapIterator iterator;
|
| - while (iterator.has_next()) {
|
| - HeapObject* obj = iterator.next();
|
| - ASSERT(obj != NULL);
|
| + for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
|
| if (obj->IsScript() && Script::cast(obj)->HasValidSource()) {
|
| script_cache_->Add(Handle<Script>(Script::cast(obj)));
|
| count++;
|
|
|