Skip to content

Commit e211491

Browse files
fix(bindgen): allow extended const wasm feature during parse
This commit enables the extended const feature for wasmparser to enable parsing components as generated by componentize-py (and other toolchains, in the future).
1 parent 2cd14ce commit e211491

File tree

1 file changed

+1
-0
lines changed
  • crates/js-component-bindgen/src

1 file changed

+1
-0
lines changed

crates/js-component-bindgen/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ pub fn transpile(component: &[u8], opts: TranspileOpts) -> Result<Transpiled> {
133133
| WasmFeatures::CM_ASYNC_BUILTINS
134134
| WasmFeatures::CM_ASYNC_STACKFUL
135135
| WasmFeatures::CM_ERROR_CONTEXT
136+
| WasmFeatures::EXTENDED_CONST
136137
| WasmFeatures::MEMORY64
137138
| WasmFeatures::MULTI_MEMORY,
138139
);

0 commit comments

Comments
 (0)