Bugfix followup to bug 1131424 on a CLOSED TREE

--HG--
extra : amend_source : 5437fb0008e51c3fa2746c614cf28464c635cfe5
This commit is contained in:
Steve Fink 2015-02-17 15:27:02 -08:00
parent 7899e2d39f
commit 1bb3ccff83

View File

@ -147,7 +147,7 @@ Library::Create(JSContext* cx, jsval path_, const JSCTypesCallbacks* callbacks)
PRLibrary* library = PR_LoadLibraryWithFlags(libSpec, 0);
if (!library) {
char *error = (char*) JS_malloc(PR_GetErrorTextLength() + 1);
char *error = (char*) JS_malloc(cx, PR_GetErrorTextLength() + 1);
if (error)
PR_GetErrorText(error);