Skip to content

Commit 76a4ff7

Browse files
committed
fix: Fixed function typo in FunctionRef and added disabled feature
1 parent 863fb4a commit 76a4ff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

binaryen/__functionref.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ def get_name(self) -> str:
1010
return lib.BinaryenFunctionGetName(self.ref)
1111

1212
def get_num_vars(self) -> int:
13-
return lib.BinaryenGetNumVars(self.ref)
13+
return lib.BinaryenFunctionGetNumVars(self.ref)
1414

1515
def get_var(self, index: int) -> BinaryenType:
1616
return lib.BinaryenFunctionGetVar(self.ref, index)
1717

18-
# def add_var(self, type: Type) -> int:
19-
# return lib.BinaryenFunctionAddVar(self.ref, type)
18+
def add_var(self, type: BinaryenType) -> int:
19+
return lib.BinaryenFunctionAddVar(self.ref, type)
2020

2121
def get_num_locals(self) -> int:
2222
return lib.BinaryenFunctionGetNumLocals(self.ref)

0 commit comments

Comments
 (0)