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 Make #[dom_struct] a proc_macro attribute 2017-02-24 01:50:51 +01:00
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 Fix hardcoded path to link.exe 2017-02-03 13:33:37 +01:00
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 Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Added some same-origin-domain checks. 2017-03-14 14:36:03 -05:00
document_loader.rs Remove mutability requirement from fetch_async_background. 2017-02-28 10:23:23 -05:00
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 Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
microtask.rs Invoke backup element queue via a microtask 2017-07-17 22:23:47 -06:00
network_listener.rs Separate the async bluetooth handling from networking code. 2016-12-21 14:52:39 +01:00
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 Remove incorrect uses of asynchronous tasks from ServiceWorker job queue. 2017-02-01 12:54:33 -05:00
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