2009-02-28 Dimitri Glazkov <dglazkov@chromium.org>
[WebKit-https.git] / WebCore / bindings / v8 / custom / V8NodeIteratorCustom.cpp
index 85269f3470a7471c39de52423e5f3e4014c7917e..48e6b8f7bf1967d912c111c578d9ea0319645e1f 100644 (file)
@@ -51,7 +51,7 @@ static inline v8::Handle<v8::Value> toV8(PassRefPtr<Node> object, ExceptionCode
         return throwError(state->exception());
 
     if (!object)
-        return v8::Undefined();
+        return v8::Null();
 
     return V8Proxy::NodeToV8Object(object.get());
 }