Skip to content

Commit f1fde56

Browse files
rbrigbrail
authored andcommitted
make NativeCall attributes final
1 parent 0261fb4 commit f1fde56

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

rhino/src/main/java/org/mozilla/javascript/NativeCall.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ static void init(Scriptable scope, boolean sealed) {
2424
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
2525
}
2626

27-
NativeCall() {}
27+
NativeCall() {
28+
function = null;
29+
originalArgs = null;
30+
isStrict = false;
31+
}
2832

2933
NativeCall(
3034
JSFunction function,
@@ -142,9 +146,9 @@ public Scriptable getHomeObject() {
142146

143147
private static final int Id_constructor = 1, MAX_PROTOTYPE_ID = 1;
144148

145-
JSFunction function;
146-
Object[] originalArgs;
147-
boolean isStrict;
149+
final JSFunction function;
150+
final Object[] originalArgs;
151+
final boolean isStrict;
148152

149153
transient NativeCall parentActivationCall;
150154
}

0 commit comments

Comments
 (0)