ossp-pkg/js/src/jsfile.c 1.1.1.1 -> 1.1.1.2
--- jsfile.c 2006/06/06 12:01:13 1.1.1.1
+++ jsfile.c 2005/11/01 01:20:21 1.1.1.2
@@ -2172,7 +2172,6 @@
obj = JS_NewObject(cx, &file_class, NULL, NULL);
if (!obj)
return JS_FALSE;
- *rval = OBJECT_TO_JSVAL(obj);
}
str = (argc == 0)
@@ -2192,6 +2191,7 @@
SECURITY_CHECK(cx, NULL, "constructor", file);
+ *rval = OBJECT_TO_JSVAL(obj);
return JS_TRUE;
}
|
|