mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fixed bug #7703, typeof<var> wasn't referencing activation frame vars
correctly.
This commit is contained in:
parent
f4713568a3
commit
4b314af77e
@ -592,7 +592,9 @@ public class Interpreter extends LabelTable {
|
||||
case TokenStream.TYPEOF : {
|
||||
String name = node.getString();
|
||||
int index = -1;
|
||||
if (itsInFunctionFlag)
|
||||
// use typeofname if an activation frame exists
|
||||
// since the vars all exist there instead of in jregs
|
||||
if (itsInFunctionFlag && !itsData.itsNeedsActivation)
|
||||
index = itsData.itsVariableTable.getOrdinal(name);
|
||||
if (index == -1) {
|
||||
iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop);
|
||||
|
@ -592,7 +592,9 @@ public class Interpreter extends LabelTable {
|
||||
case TokenStream.TYPEOF : {
|
||||
String name = node.getString();
|
||||
int index = -1;
|
||||
if (itsInFunctionFlag)
|
||||
// use typeofname if an activation frame exists
|
||||
// since the vars all exist there instead of in jregs
|
||||
if (itsInFunctionFlag && !itsData.itsNeedsActivation)
|
||||
index = itsData.itsVariableTable.getOrdinal(name);
|
||||
if (index == -1) {
|
||||
iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop);
|
||||
|
Loading…
Reference in New Issue
Block a user