We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863fb4a commit 76a4ff7Copy full SHA for 76a4ff7
binaryen/__functionref.py
@@ -10,13 +10,13 @@ def get_name(self) -> str:
10
return lib.BinaryenFunctionGetName(self.ref)
11
12
def get_num_vars(self) -> int:
13
- return lib.BinaryenGetNumVars(self.ref)
+ return lib.BinaryenFunctionGetNumVars(self.ref)
14
15
def get_var(self, index: int) -> BinaryenType:
16
return lib.BinaryenFunctionGetVar(self.ref, index)
17
18
- # def add_var(self, type: Type) -> int:
19
- # return lib.BinaryenFunctionAddVar(self.ref, type)
+ def add_var(self, type: BinaryenType) -> int:
+ return lib.BinaryenFunctionAddVar(self.ref, type)
20
21
def get_num_locals(self) -> int:
22
return lib.BinaryenFunctionGetNumLocals(self.ref)
0 commit comments