ts: fix formatIdlData for option defined type (#1439)

This commit is contained in:
Totoro 2022-02-28 20:15:54 +03:00 committed by GitHub
parent b733610d87
commit 9c49e7642d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ class InstructionFormatter {
? "null"
: this.formatIdlData(
{ name: "", type: (<IdlTypeOption>idlField.type).option },
data
data,
types
);
}
if (idlField.type.hasOwnProperty("defined")) {