Skip to content

Commit

Permalink
[jacline] hotfix to allow webcrypto compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Aug 20, 2024
1 parent 73e608d commit 4a3c48b
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ private void acceptFunctionType(FunctionType type, String name) {
}

private void acceptTypedef(StaticTypedSlot typedef) {
try {
typedef.getScope();
} catch (UnsupportedOperationException e) {
return;
}

// The type linked to symbol is not the type represented in the @typedef annotations.
JSType realType = checkNotNull(getJsTypeRegistry().getType(
typedef.getScope(), typedef.getName()));
Expand Down Expand Up @@ -281,8 +287,12 @@ protected void acceptMember(StaticTypedSlot member, boolean isStatic) {
}
endVisitMethod(method);
} else {
if (visitField(member, isStatic)) {
acceptType(propertyType);
try {
if (visitField(member, isStatic)) {
acceptType(propertyType);
}
} catch (NullPointerException e) {
e.printStackTrace();
}
}

Expand Down

0 comments on commit 4a3c48b

Please sign in to comment.