Skip to content

Commit

Permalink
Pass correct parameters in splitScope
Browse files Browse the repository at this point in the history
  • Loading branch information
rPraml authored and gbrail committed Sep 27, 2024
1 parent 8b3f11e commit 19fbdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhino/src/main/java/org/mozilla/javascript/ast/Scope.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void setTop(ScriptNode top) {
* a scope chain.
*/
public static Scope splitScope(Scope scope) {
Scope result = new Scope(scope.getType());
Scope result = new Scope(scope.getPosition(), scope.getLength());
result.symbolTable = scope.symbolTable;
scope.symbolTable = null;
result.parent = scope.parent;
Expand Down

0 comments on commit 19fbdcc

Please sign in to comment.