提交 29186166 编写于 作者: S sla

7162726: Wrong filter predicate of visible locals in SA JSJavaFrame

Reviewed-by: sla, dcubed
Contributed-by: NKrystal Mok <rednaxelafx@gmail.com>
上级 e3071fcf
......@@ -153,7 +153,8 @@ public class JSJavaFrame extends DefaultScriptObject {
List visibleVars = new ArrayList(0);
for (int i = 0; i < localVars.length; i++) {
LocalVariableTableElement cur = localVars[i];
if (cur.getStartBCI() >= bci && cur.getLength() > 0) {
int startBCI = cur.getStartBCI();
if (startBCI <= bci && bci < startBCI + cur.getLength()) {
visibleVars.add(cur);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册