Implement optionally catching exceptions

This commit is contained in:
Alex Crichton
2018-02-06 19:04:12 -08:00
parent 43ee52bcbf
commit e9d612a343
7 changed files with 313 additions and 71 deletions

View File

@ -24,6 +24,7 @@ pub struct Struct {
#[derive(Serialize, Deserialize)]
pub struct Import {
pub module: String,
pub catch: bool,
pub function: Function,
}
@ -38,6 +39,7 @@ pub struct ImportStruct {
pub struct ImportStructFunction {
pub method: bool,
pub js_new: bool,
pub catch: bool,
pub function: Function,
}