Fixing for..in, runaway string allocation, array.length initialization.

git-svn-id: svn://10.0.0.236/trunk@140728 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-04-04 23:24:57 +00:00
parent 3b2f21d079
commit bbfe54bd1e
9 changed files with 89 additions and 68 deletions

View File

@@ -362,6 +362,10 @@ namespace MetaData {
// if not available or result is not primitive then try property 'valueOf'
// if that's not available or returns a non primitive, throw a TypeError
JS2Object *obj = JS2VAL_TO_OBJECT(x);
if (obj->kind != SimpleInstanceKind) // therefore, not an E3 object, so just return
return engine->typeofString(x); // the 'typeof' string
if (hint == StringHint) {
js2val result;
if (invokeFunctionOnObject(x, engine->toString_StringAtom, result)) {