mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
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 --> |
||
---|---|---|
.. | ||
parser | ||
ply | ||
api.html.template | ||
apis.html.template | ||
BindingGen.py | ||
Bindings.conf | ||
CodegenRust.py | ||
Configuration.py | ||
GlobalGen.py | ||
interface.html.template | ||
property.html.template | ||
pythonpath.py |