UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:50.0) Gecko/20100101 Firefox/50.0
Example URL:
Steps to reproduce the problem:
1. Load any web page.
2. Evaluate the expression "document.childNodes.forEach == Array.prototype.forEach" in the console.
What is the expected behavior?
Evaluates to true.
What went wrong?
Evaluates to false.
Does it occur on multiple sites: Yes
Is it a problem with a plugin? No
Did this work before? No
Does this work in other browsers? Yes
Chrome version: 54.0.2810.2 (Official Build) dev (64-bit) Channel: n/a
OS Version: OS X 10.10
Flash Version:
The same issue comes up for keys, values, entries, and Symbol.iterator.
Spec at http://heycam.github.io/webidl/#es-forEach says:
If the interface defines an indexed property getter,
then the Function object is the initial value of the
“forEach” data property of %ArrayPrototype%
([ECMA-262], section 6.1.7.4).
and similar for the other property names.
Comment 1 by kojii@chromium.org
, Jul 30 2016Labels: -OS-Mac OS-All