[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kjs [POSSIBLY UNSAFE]
From: David Faure <faure () kde ! org>
Date: 2003-10-27 22:16:31
[Download RAW message or body]
CVS commit by faure:
Apple noted that this debug output was unconditional - fixed.
M +7 -3 nodes.cpp 1.161 [POSSIBLY UNSAFE: printf]
--- kdelibs/kjs/nodes.cpp #1.160:1.161
@@ -375,8 +375,8 @@ Reference ResolveNode::evaluateReference
ObjectImp *o = chain.top();
- //cout << "Resolve: looking at '" << ident.ascii() << "'"
+ //cerr << "Resolve: looking at '" << ident.ascii() << "'"
// << " in " << (void*)o << " " << o->classInfo()->className << endl;
if (o->hasProperty(exec,ident)) {
- //cout << "Resolve: FOUND '" << ident.ascii() << "'"
+ //cerr << "Resolve: FOUND '" << ident.ascii() << "'"
// << " in " << (void*)o << " " << o->classInfo()->className << endl;
return Reference(o, ident);
@@ -388,5 +388,5 @@ Reference ResolveNode::evaluateReference
// identifier not found
#ifdef KJS_VERBOSE
- cout << "Resolve::evaluateReference: didn't find '" << ident.ustring().ascii() << \
"'" << endl; + cerr << "Resolve::evaluateReference: didn't find '" << \
ident.ustring().ascii() << "'" << endl; #endif
return Reference(Null(), ident);
@@ -649,4 +649,5 @@ Reference AccessorNode2::evaluateReferen
{
Value v = expr->evaluate(exec);
+ assert(v.isValid());
KJS_CHECKEXCEPTIONREFERENCE
Object o = v.toObject(exec);
@@ -2989,4 +2990,7 @@ void FuncDeclNode::processFuncDecl(ExecS
func.put(exec, lengthPropertyName, Number(plen), ReadOnly|DontDelete|DontEnum);
+#ifdef KJS_VERBOSE
+ fprintf(stderr,"KJS: new function %s in %p\n", ident.ustring().cstring().c_str(), \
ctx->variableObject().imp()); +#endif
if (exec->_context->type() == EvalCode)
ctx->variableObject().put(exec,ident,func,Internal);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic