Skip to content

Commit 4156a37

Browse files
authored
Merge pull request #1485 from alexcrichton/missing-vector-len
Add missing `expose_wasm_vector_len`
2 parents cc89109 + 21205ec commit 4156a37

File tree

1 file changed

+2
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+2
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ impl<'a> Context<'a> {
14501450
}
14511451
self.require_internal_export("__wbindgen_malloc")?;
14521452
self.expose_uint32_memory();
1453+
self.expose_wasm_vector_len();
14531454
if self.config.anyref {
14541455
// TODO: using `addToAnyrefTable` goes back and forth between wasm
14551456
// and JS a lot, we should have a bulk operation for this.
@@ -2667,7 +2668,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
26672668
.expect("classes already written")
26682669
.entry(class_name.to_string())
26692670
.or_insert(ExportedClass::default());
2670-
2671+
26712672
let doc_comments = format_doc_comments(&export.comments, Some(js_doc));
26722673
class.contents.push_str(&doc_comments);
26732674
class.typescript.push_str(&doc_comments);

0 commit comments

Comments
 (0)