Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 4d990bb

Browse files
committed
Expand function_table a bit
1 parent e6d588a commit 4d990bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/006-local-js-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ export function take_u8_slice(memory, ptr, len) {
275275

276276
Here the `wasm_bindgen::memory()` existing intrinsic is used to pass along the
277277
memory object to the imported JS snippet. To mirror this we'll add
278-
`wasm_bindgen::function_table()` as well to access the function table.
278+
`wasm_bindgen::function_table()` as well to the `wasm-bindgen` crate as an
279+
intrinsic to access the function table and return it as a `JsValue`.
279280

280281
Eventually we may want a more explicit way to import the memory/table, but for
281282
now this should be sufficient for expressiveness.

0 commit comments

Comments
 (0)