Skip to content

Commit 9b82362

Browse files
committed
fix: correct function signatures for lengthInBytes and readUntil in classfile.ts
1 parent 7ee4e11 commit 9b82362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/classfile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ var ConstantClassInfo = Parser.start().uint16be("name_index");
719719
InstructionParser
720720
]
721721
}),
722-
lengthInBytes: function (item, buffer) {
722+
lengthInBytes: function (item) {
723723
//console.log("eyy", this, this.$parent.code_length);
724724
return this.$parent.code_length;
725725
}
@@ -772,7 +772,7 @@ var ConstantClassInfo = Parser.start().uint16be("name_index");
772772
.uint16("count")
773773
.array("entries", {
774774
type: CpInfo,
775-
readUntil: function (item, buffer, offset) {
775+
readUntil: function (item, buffer) {
776776
if (this.entries.length >= this.count - 1) return true;
777777
// Check if we've just read a long or double
778778
if (item.tag === 5 || item.tag === 6) {

0 commit comments

Comments
 (0)