mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #1485 from alexcrichton/missing-vector-len
Add missing `expose_wasm_vector_len`
This commit is contained in:
commit
4156a37856
@ -1450,6 +1450,7 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
self.require_internal_export("__wbindgen_malloc")?;
|
||||
self.expose_uint32_memory();
|
||||
self.expose_wasm_vector_len();
|
||||
if self.config.anyref {
|
||||
// TODO: using `addToAnyrefTable` goes back and forth between wasm
|
||||
// and JS a lot, we should have a bulk operation for this.
|
||||
@ -2667,7 +2668,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
.expect("classes already written")
|
||||
.entry(class_name.to_string())
|
||||
.or_insert(ExportedClass::default());
|
||||
|
||||
|
||||
let doc_comments = format_doc_comments(&export.comments, Some(js_doc));
|
||||
class.contents.push_str(&doc_comments);
|
||||
class.typescript.push_str(&doc_comments);
|
||||
|
Loading…
x
Reference in New Issue
Block a user