Bug 1356799, part 2 - Don't use JS:: for handle types in subscript loader. r=mrbkap

Also, be consistent with the rest of the code and use a handle
typedef in one place.

MozReview-Commit-ID: KY3cnLemoUl

--HG--
extra : rebase_source : 4c3ae2750c868b5401a686dd164adbd04b45a0b5
This commit is contained in:
Andrew McCreight 2017-04-15 06:47:07 -07:00
parent b38f79c2ac
commit ad47781af1
2 changed files with 3 additions and 3 deletions

View File

@ -472,8 +472,8 @@ mozJSSubScriptLoader::ReadScript(nsIURI* uri,
nsIIOService* serv,
nsIPrincipal* principal,
bool reuseGlobal,
JS::MutableHandleScript script,
JS::MutableHandleFunction function)
MutableHandleScript script,
MutableHandleFunction function)
{
script.set(nullptr);
function.set(nullptr);

View File

@ -47,7 +47,7 @@ private:
nsresult DoLoadSubScriptWithOptions(const nsAString& url,
LoadSubScriptOptions& options,
JSContext* cx,
JS::MutableHandle<JS::Value> retval);
JS::MutableHandleValue retval);
nsCOMPtr<nsIPrincipal> mSystemPrincipal;
};