Comment #7 on issue 3953 by phistuck: Misleading error message for for-of loop
https://code.google.com/p/v8/issues/detail?id=3953

Note that the same happens with any pure JavaScript (meaning, non DOM) non-iterable object that a method returns.

for (var element of Date.now()) {}
Uncaught TypeError: Date.now is not a function

It was very confusing when I hit it. I spent a few minutes trying to make sure I spelled the method name correctly, even though I copy-pasted it! :(

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to