Files
servo/components/script/dom/bindings
bors-servo 06bb57bdcb Auto merge of #13406 - Mylainos:issue-13377, r=jdm
Extract panic-catching for JS engine callbacks into a separate function

All of our generated code for script contains inline code like this:
```
let result = panic::catch_unwind(AssertUnwindSafe(|| {
    ...
};
match result {
    Ok(result) => result,
    Err(error) => {
        store_panic_result(error);
        return false;
    }
}
```
This PR change it to something like this:
```
wrap_panic(|| { ... }, false)
```

---
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [X] These changes fix #13377

- [ ] There are tests for these changes

<!-- 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/13406)
<!-- Reviewable:end -->
2016-09-27 09:58:42 -05:00
..
2016-09-09 04:55:19 +02:00
2016-09-21 14:03:34 +02:00
2016-09-22 16:16:55 -04:00
2016-09-09 04:55:19 +02:00
2016-09-08 11:01:34 +02:00
2016-09-21 14:03:34 +02:00
2016-09-08 11:01:34 +02:00
2016-04-20 15:23:43 +02:00
2016-09-09 04:55:19 +02:00
2016-09-07 15:47:36 +02:00
2016-05-15 22:24:26 +03:00
2016-05-24 10:54:57 +02:00