servo/components/script/dom/bindings/codegen
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
..
parser Properly generate typedef identities in unions 2016-09-07 21:48:46 -07:00
ply Cargoify servo 2014-09-08 20:21:42 -06:00
api.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
apis.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
BindingGen.py Remove unused command-line Python codegen arguments 2016-01-07 08:51:06 -05:00
Bindings.conf Implement binding support for returning and accepting Promises in WebIDL. 2016-09-22 16:16:48 -04:00
CodegenRust.py Auto merge of #13406 - Mylainos:issue-13377, r=jdm 2016-09-27 09:58:42 -05:00
Configuration.py Ensure Promise "reflector" is not GCed before the Rust object. 2016-09-22 16:16:54 -04:00
GlobalGen.py Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00
interface.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
property.html.template Generate a list of supported DOM APIs from parsed WebIDLs. 2016-07-15 18:13:09 -04:00
pythonpath.py Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00