2009-02-28 Dimitri Glazkov <dglazkov@chromium.org>
[WebKit-https.git] / WebCore / bindings / v8 / custom / V8TreeWalkerCustom.cpp
index 08fd66bcb28fd0052fe3859dd63ad8543844b933..baf49c0370b35d5998ebbadc319eff99f17fe2b2 100644 (file)
@@ -49,7 +49,7 @@ static inline v8::Handle<v8::Value> toV8(PassRefPtr<Node> object, ScriptState* s
         return throwError(state->exception());
 
     if (!object)
-        return v8::Undefined();
+        return v8::Null();
 
     return V8Proxy::NodeToV8Object(object.get());
 }