From c6f254c9c159f4e2db385b9c3f5fa7d43f7c7d13 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Tue, 15 Jun 2010 14:09:59 -0700 Subject: [PATCH] Make test_bogus_files.js pass after bug 552121 c666507bf280 --- js/src/xpconnect/loader/mozJSComponentLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/xpconnect/loader/mozJSComponentLoader.cpp b/js/src/xpconnect/loader/mozJSComponentLoader.cpp index cc7158d3d0d7..d2dbb7589eee 100644 --- a/js/src/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/src/xpconnect/loader/mozJSComponentLoader.cpp @@ -1676,7 +1676,7 @@ mozJSComponentLoader::ImportInto(const nsACString & aLocation, // figure out the resolved URI nsCOMPtr scriptChannel; rv = ioService->NewChannelFromURI(resURI, getter_AddRefs(scriptChannel)); - NS_ENSURE_SUCCESS(rv, rv); + NS_ENSURE_SUCCESS(rv, NS_ERROR_INVALID_ARG); nsCOMPtr resolvedURI; rv = scriptChannel->GetURI(getter_AddRefs(resolvedURI));