OSSP CVS Repository

ossp - Difference in ossp-pkg/js/src/jsfile.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/js/src/jsfile.c 1.2 -> 1.3

--- jsfile.c     2006/07/23 10:52:12     1.2
+++ jsfile.c     2006/07/24 18:38:27     1.3
@@ -2400,7 +2400,6 @@
         obj = JS_NewObject(cx, &file_class, NULL, NULL);
         if (!obj)
             return JS_FALSE;
-        *rval = OBJECT_TO_JSVAL(obj);
     }
 
     str = (argc == 0) 
@@ -2420,6 +2419,7 @@
 
     SECURITY_CHECK(cx, NULL, "constructor", file);
 
+    *rval = OBJECT_TO_JSVAL(obj);
     return JS_TRUE;
 }
 

CVSTrac 2.0.1