Skip to content

Commit

Permalink
fix(wasm-api-bindgen): add missing Field.skip check
Browse files Browse the repository at this point in the history
- update generateField() in TypeScript gen
  • Loading branch information
postspectacular committed Jan 23, 2023
1 parent 788dfa2 commit ac43440
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/wasm-api-bindgen/src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ const generateField = (
coll: TypeColl,
opts: CodeGenOpts
): AugmentedField | undefined => {
if (field.skip) return;
if (isFuncPointer(field.type, coll) || isOpaque(field.type)) {
field = { ...field, type: opts.target.usize };
}
Expand Down

0 comments on commit ac43440

Please sign in to comment.