Status: New
Owner: ----

New issue 3953 by [email protected]: Misleading error message for for-of loop
https://code.google.com/p/v8/issues/detail?id=3953

Version: 4.3.26 (1fbbd4ac6442b1f68a96b0c0c3bd91f1ecb5681d)
OS: Ubuntu
Architecture: x64

What steps will reproduce the problem?
1. Open JS console in Chrome.
2. Execute: for (var i of document.querySelectorAll('div')) console.log(i);


What is the actual output?
Uncaught TypeError: document.querySelectorAll is not a function
    at <anonymous>:2:24
    at Object.InjectedScript._evaluateOn (<anonymous>:860:140)
    at Object.InjectedScript._evaluateAndWrap (<anonymous>:793:34)
    at Object.InjectedScript.evaluate (<anonymous>:659:21)

What is the expected output?
Something indicating that the return value of document.querySelectorAll('div') is not suitable for for-of.


--
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