servo/tests
bors-servo cdd4de9c06 Auto merge of #17250 - cbrewster:unwrap_constructor, r=jdm
Unwrap function before calling IsConstructor

`IsConstructor` returns true for all wrappers that are callable. Wrapped
arrow functions are callable and thus `IsConstructor` will return true
if given one; however, if we unwrap the arrow function, `IsConstructor`
will return false. The latter is the correct behavior here.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

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

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- 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/17250)
<!-- Reviewable:end -->
2017-08-16 17:09:37 -05:00
..
compiletest tests: Rename privatize.rs to deny_public_fields.rs 2017-06-26 22:44:44 +01:00
dromaeo
heartbeats Update heartbeats-simple to 0.4; Include recently added profiler categories in heartbeat logging 2017-02-20 17:17:54 -06:00
html WebVR 1.1 spec compatibility 2017-07-05 22:38:29 +02:00
jquery
power
unit style: Avoid multiple selector walk-ups during SelectorMap insertion. 2017-08-16 08:49:39 +02:00
wpt Auto merge of #17250 - cbrewster:unwrap_constructor, r=jdm 2017-08-16 17:09:37 -05:00