Fixed stack error for hoisted var initialization and typeof prototype
functions. git-svn-id: svn://10.0.0.236/trunk@137337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
63aaf01406
commit
c9cff442ba
@ -1181,7 +1181,7 @@ namespace MetaData {
|
||||
if (r) r->emitReadBytecode(bCon, p->pos);
|
||||
LexicalReference *lVal = new LexicalReference(vb->name, cxt.strict);
|
||||
lVal->variableMultiname->addNamespace(publicNamespace);
|
||||
lVal->emitWriteBytecode(bCon, p->pos);
|
||||
lVal->emitInitBytecode(bCon, p->pos);
|
||||
}
|
||||
}
|
||||
vb = vb->next;
|
||||
|
||||
@ -279,6 +279,8 @@
|
||||
a = STRING_TO_JS2VAL(Function_StringAtom);
|
||||
break;
|
||||
case PrototypeInstanceKind:
|
||||
a = STRING_TO_JS2VAL(checked_cast<PrototypeInstance *>(obj)->type->getName());
|
||||
break;
|
||||
case PackageKind:
|
||||
case GlobalObjectKind:
|
||||
a = STRING_TO_JS2VAL(object_StringAtom);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user