servo/components/script/dom/bindings
bors-servo c212234258 Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emilio
Fix codegen for iterable's forEach method

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13451 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13508)
<!-- Reviewable:end -->
2016-09-29 20:21:32 -05:00
..
codegen Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emilio 2016-09-29 20:21:32 -05:00
callback.rs Reorder use statements 2016-09-09 04:55:19 +02:00
constant.rs Move WebIDL constants machinery to bindings::constant 2016-09-06 10:14:11 +02:00
conversions.rs Implement the MozMap type. 2016-09-21 14:03:34 +02:00
error.rs Add a simple API to reject promises with DOM error values. 2016-09-22 16:16:58 -04:00
global.rs Support promises in workers. 2016-09-22 16:16:55 -04:00
guard.rs Refactor util::prefs operations to be methods on static struct. 2016-07-02 16:43:39 -04:00
inheritance.rs Reorder use statements 2016-09-09 04:55:19 +02:00
interface.rs Implement WebIDL namespaces 2016-09-08 11:01:34 +02:00
iterable.rs Extract mutability out of Reflectable trait. 2016-09-07 10:40:13 +02:00
js.rs Ensure Promise "reflector" is not GCed before the Rust object. 2016-09-22 16:16:54 -04:00
mod.rs Implement the MozMap type. 2016-09-21 14:03:34 +02:00
mozmap.rs Enable OpenEndedDictionary in Headers 2016-09-22 15:01:34 -07:00
namespace.rs Implement WebIDL namespaces 2016-09-08 11:01:34 +02:00
num.rs Use num-traits in script. 2016-04-20 15:23:43 +02:00
proxyhandler.rs Reorder use statements 2016-09-09 04:55:19 +02:00
refcounted.rs Support an equivalent of Trusted<T> for Rc<Promise> objects named TrustedPromise. 2016-09-22 16:16:59 -04:00
reflector.rs Extract mutability out of Reflectable trait. 2016-09-07 10:40:13 +02:00
str.rs Implement Borrow<str> for DOMString 2016-09-07 15:47:36 +02:00
structuredclone.rs make structured clone an enum 2016-09-15 11:32:55 +05:30
trace.rs Support an equivalent of Trusted<T> for Rc<Promise> objects named TrustedPromise. 2016-09-22 16:16:59 -04:00
utils.rs Issue #13377 Extract panic-catching for JS engine callbacks into a 2016-09-26 19:20:22 +02:00
weakref.rs Removed unused imports 2016-05-15 22:24:26 +03:00
xmlname.rs Move DOMString back to script 2016-05-24 10:54:57 +02:00