Skip to content

Commit

Permalink
fix(js): properly wrap byte array
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce committed Aug 19, 2024
1 parent f1861fe commit b0745a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "run.slicer"
version = "1.0.1"
version = "1.0.2"
description = "A Java library for performing bytecode normalization and generic deobfuscation."

repositories {
Expand Down
2 changes: 1 addition & 1 deletion js/src/main/java/run/slicer/poke/js/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ private static JSPromise<Uint8Array> analyze0(byte[] data, Options options) {
});
}

@JSBody(params = {"data"}, script = "return data;")
@JSBody(params = {"data"}, script = "return new Uint8Array(data);")
private static native Uint8Array wrapByteArray(@JSByRef byte[] data);
}

0 comments on commit b0745a3

Please sign in to comment.