Fix for bug 45885. The js prototype gFileSpecProto was defined locally and so was set to null. Wrong! r=sgehani
git-svn-id: svn://10.0.0.236/trunk@77378 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -63,7 +63,7 @@ extern PRBool ConvertJSValToObj(nsISupports** aSupports,
|
||||
JSContext* aContext,
|
||||
jsval aValue);
|
||||
|
||||
|
||||
extern JSObject *gFileSpecProto;
|
||||
//
|
||||
// Native method DirCreate
|
||||
//
|
||||
@@ -157,9 +157,8 @@ InstallFileOpDirGetParent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
||||
{
|
||||
/* Now create the new JSObject */
|
||||
JSObject *fileSpecObject;
|
||||
JSObject *FileSpecProto = nsnull;
|
||||
|
||||
fileSpecObject = JS_NewObject(cx, &FileSpecObjectClass, FileSpecProto, NULL);
|
||||
fileSpecObject = JS_NewObject(cx, &FileSpecObjectClass, gFileSpecProto, NULL);
|
||||
if (fileSpecObject == NULL)
|
||||
return JS_FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user