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:
rogerl%netscape.com 2003-02-03 21:31:07 +00:00
parent 63aaf01406
commit c9cff442ba
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);