Fix codegen for iterable's forEach method

The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds.

Fixes #13451
This commit is contained in:
Till Schneidereit 2016-09-29 12:35:11 +02:00
parent 06bb57bdcb
commit 9a8f520047

View file

@ -1612,7 +1612,7 @@ class MethodDefiner(PropertyDefiner):
"name": "forEach",
"methodInfo": False,
"selfHostedName": "ArrayForEach",
"length": 0,
"length": 1,
"condition": PropertyDefiner.getControllingCondition(m,
descriptor)
})