Merge pull request #1485 from alexcrichton/missing-vector-len

Add missing `expose_wasm_vector_len`
This commit is contained in:
Alex Crichton 2019-04-25 21:48:09 -05:00 committed by GitHub
commit 4156a37856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.