Proto instance dup. Type discovery in expression.

git-svn-id: svn://10.0.0.236/trunk@133595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2002-11-11 22:19:59 +00:00
parent 706ecd43c8
commit 93eee3bfd6
3 changed files with 135 additions and 62 deletions

View File

@@ -314,6 +314,25 @@ js2val dump(JS2Metadata *meta, const js2val /* thisValue */, js2val argv[], uint
stdOut << "\t" << *wib->second->qname.nameSpace->name << "::" << wib->second->qname.id << " [write-only]" << "\n";
}
}
else {
if (fObj->kind == PrototypeInstanceKind) {
PrototypeInstance *pInst = checked_cast<PrototypeInstance *>(fObj);
stdOut << "Prototype Instance\n";
if (pInst->parent)
printFormat(stdOut, "Parent @ 0x%08X\n", pInst->parent);
else
stdOut << " Null Parent\n";
if (pInst->type)
stdOut << " Type: " << *pInst->type->getName() << "\n";
else
stdOut << " Null Type\n";
stdOut << " Dynamic Properties:\n";
for (DynamicPropertyIterator dpi = pInst->dynamicProperties.begin(), dpend = pInst->dynamicProperties.end(); (dpi != dpend); dpi++) {
stdOut << "\t" << dpi->first << " = " << *meta->toString(dpi->second) << "\n";
}
}
}
}
}
}