mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 01:01:34 +00:00
Generate bindings for indexed struct properties
This allows to export fields of tuple-like structs as indexed JS properties.
This commit is contained in:
@ -137,6 +137,7 @@ exports.js_js_rename = () => {
|
||||
|
||||
exports.js_access_fields = () => {
|
||||
assert.ok((new wasm.AccessFieldFoo()).bar instanceof wasm.AccessFieldBar);
|
||||
assert.ok((new wasm.AccessField0())[0] instanceof wasm.AccessFieldBar);
|
||||
};
|
||||
|
||||
exports.js_renamed_export = () => {
|
||||
|
Reference in New Issue
Block a user