Fixed execStack overflow, added 'unescape' etc.

git-svn-id: svn://10.0.0.236/trunk@138054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-02-20 23:55:53 +00:00
parent b37d28a5e1
commit bb114bf509
11 changed files with 171 additions and 96 deletions

View File

@@ -59,11 +59,13 @@ namespace MetaData {
{
js2val thatValue = OBJECT_TO_JS2VAL(new BooleanInstance(meta->booleanClass->prototype, meta->booleanClass));
BooleanInstance *boolInst = checked_cast<BooleanInstance *>(JS2VAL_TO_OBJECT(thatValue));
JS2Object::RootIterator ri = JS2Object::addRoot(&boolInst);
if (argc > 0)
boolInst->mValue = meta->toBoolean(argv[0]);
else
boolInst->mValue = false;
JS2Object::removeRoot(ri);
return thatValue;
}