Skip to content

Commit 510533a

Browse files
daxpeddaLiamolucko
andcommitted
Address review
Co-Authored-By: Liam Murphy <[email protected]>
1 parent c09bb3b commit 510533a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,9 +1376,15 @@ pub fn function_table() -> JsValue {
13761376
pub enum ShimFormat {
13771377
/// The shim is an ES module.
13781378
EsModule,
1379-
/// The shim is regular JavaScript.
1379+
/// The shim doesn't use any module system, and instead exposes a global variable
1380+
/// with its API.
1381+
///
1382+
/// It has to be imported as a script to work properly, as the global variable is
1383+
/// created by simply declaring a top-level variable, which only works in scripts.
13801384
NoModules {
1381-
/// The name of the global variable.
1385+
/// The name of the global variable the shim exposes.
1386+
///
1387+
/// By default, this is `"wasm_bindgen"`.
13821388
global_name: String,
13831389
},
13841390
}

0 commit comments

Comments
 (0)