Skip to content

Commit

Permalink
class-factory: Add toString() method to overloads (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
oriori1703 authored Apr 14, 2023
1 parent 5fb6f48 commit 0816b5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/class-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,12 @@ methodPrototype = Object.create(Function.prototype, {
env.popLocalFrame(NULL);
}
}
},
toString: {
enumerable: true,
value () {
return `function ${this.methodName}(${this.argumentTypes.map(t => t.className).join(', ')}): ${this.returnType.className}`;
}
}
});

Expand Down

0 comments on commit 0816b5d

Please sign in to comment.