Skip to content

Commit

Permalink
FIX: lint in Arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xe committed Jul 15, 2024
1 parent 8360b40 commit 8af362a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rhino/src/main/java/org/mozilla/javascript/Arguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ private boolean sharedWithActivation(int index) {
// Check if default arguments are present
if (f instanceof InterpretedFunction && ((InterpretedFunction) f).idata.argsHasDefaults) {
return false;
} else if (f instanceof NativeFunction && f.hasDefaultParameters()) {
} else if (f != null && f.hasDefaultParameters()) {
return false;
} else if (f == null) {
return false;
}

Expand Down

0 comments on commit 8af362a

Please sign in to comment.