mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix export_name default
This commit is contained in:
@@ -560,11 +560,15 @@ impl ModuleCompiler {
|
||||
};
|
||||
|
||||
if let Some(defn) = defn {
|
||||
self
|
||||
.module
|
||||
.export_star
|
||||
.properties
|
||||
.push((Value::String(export_name), Value::Pointer(defn)));
|
||||
if export_name == "default" {
|
||||
self.module.export_default = Value::Pointer(defn);
|
||||
} else {
|
||||
self
|
||||
.module
|
||||
.export_star
|
||||
.properties
|
||||
.push((Value::String(export_name), Value::Pointer(defn)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Default(_) => {
|
||||
|
||||
Reference in New Issue
Block a user