Suppport for javascript constructors

This is a conservative version where the function used for the constructor must be called `new`
This commit is contained in:
konstin
2018-04-14 15:34:11 +02:00
committed by Alex Crichton
parent 3305621012
commit 32ab5a5644
4 changed files with 174 additions and 68 deletions

View File

@ -54,6 +54,7 @@ pub struct ImportType {
pub struct Export {
pub class: Option<String>,
pub method: bool,
pub constructor: bool,
pub function: Function,
}