Comment #6 on issue 1929 by [email protected]: getOwnPropertyNames should only include named properties, not numbered ones
http://code.google.com/p/v8/issues/detail?id=1929

To be exact: V8 doesn't crash, it detects an OOM and reports this to Chrome. :-)

Granted, we could perhaps tune getOwnPropertyNames a bit, but this won't remove the fact that it can run out of memory ultimately. The question is: What is one trying to achieve by using getOwnPropertyNames? If you (ab-)use an object as a hash map, you will probably run into memory problems earlier, and if you want to iterate over a large array, using a loop with a counter is the way to go.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to