Skip to content

Commit

Permalink
ensure works with default export
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 1, 2024
1 parent 056de50 commit 344e432
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/source/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ mod test {
index: 8,
export_type: wasm_dep_analyzer::ExportType::Unknown,
},
Export {
name: "default",
index: 9,
export_type: wasm_dep_analyzer::ExportType::Unknown,
},
],
});
assert_eq!(
Expand All @@ -202,6 +207,8 @@ export declare const name7: unknown;
export declare const name8: unknown;
declare const __deno_wasm_export_1__: unknown;
export { __deno_wasm_export_1__ as \"name9--\" };
declare const __deno_wasm_export_2__: unknown;
export { __deno_wasm_export_2__ as \"default\" };
"
);
}
Expand Down

0 comments on commit 344e432

Please sign in to comment.