mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
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:
parent
06bb57bdcb
commit
9a8f520047
1 changed files with 1 additions and 1 deletions
|
@ -1612,7 +1612,7 @@ class MethodDefiner(PropertyDefiner):
|
|||
"name": "forEach",
|
||||
"methodInfo": False,
|
||||
"selfHostedName": "ArrayForEach",
|
||||
"length": 0,
|
||||
"length": 1,
|
||||
"condition": PropertyDefiner.getControllingCondition(m,
|
||||
descriptor)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue