Skip to content

Commit 5addcb6

Browse files
committed
Better Scope.toString() for eval scopes.
1 parent 9edf983 commit 5addcb6

File tree

1 file changed

+2
-2
lines changed
  • graal-js/src/com.oracle.js.parser/src/com/oracle/js/parser/ir

1 file changed

+2
-2
lines changed

graal-js/src/com.oracle.js.parser/src/com/oracle/js/parser/ir/Scope.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ private String getScopeKindName() {
736736
return "Global";
737737
} else if (isModuleScope()) {
738738
return "Module";
739+
} else if (isEvalScope()) {
740+
return "Eval";
739741
} else if (isFunctionBodyScope()) {
740742
return "Var";
741743
} else if (isFunctionParameterScope()) {
@@ -748,8 +750,6 @@ private String getScopeKindName() {
748750
return "Class";
749751
} else if (isClassBodyScope()) {
750752
return "Private";
751-
} else if (isEvalScope()) {
752-
return "Eval";
753753
}
754754
return "";
755755
}

0 commit comments

Comments
 (0)