servo/components/script
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
..
docs
dom Auto merge of #17250 - cbrewster:unwrap_constructor, r=jdm 2017-08-16 17:09:37 -05:00
task_source Added Debug implementations. 2017-06-13 10:46:59 -05:00
body.rs Untry script 2017-06-18 13:21:49 +02:00
build.rs
Cargo.toml Update to cssparser 0.19, count line numbers during tokenization 2017-08-09 22:37:16 +02:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt
devtools.rs
document_loader.rs
fetch.rs Change RequestInit origin type to ImmutableOrigin 2017-07-16 21:44:33 +02:00
layout_image.rs Change RequestInit origin type to ImmutableOrigin 2017-07-16 21:44:33 +02:00
lib.rs Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
mem.rs
microtask.rs Invoke backup element queue via a microtask 2017-07-17 22:23:47 -06:00
network_listener.rs
script_runtime.rs Added Debug implementations. 2017-06-13 10:46:59 -05:00
script_thread.rs Revert "Auto merge of #17891 - MortimerGoro:webgl_move, r=glennw,emilio" 2017-08-16 16:42:13 +02:00
serviceworker_manager.rs remove extra spaces after keywords 2017-07-20 00:45:02 +03:00
serviceworkerjob.rs
stylesheet_loader.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
test.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00
textinput.rs Bring back clipboard support 2017-06-01 16:37:29 +02:00
timers.rs Use boxed slice instead of vec for FuntionTimerCallback 2017-07-11 14:07:40 -07:00
unpremultiplytable.rs
webdriver_handlers.rs Replace downcast with is 2017-08-02 21:51:17 +02:00