@@ -61,7 +61,7 @@ static TaintOperation GetTaintOperation(JSContext *cx, const char* name)
6161static TaintOperation GetTaintOperation (JSContext *cx, const char * name, const nsAString& arg)
6262{
6363 if (cx && JS::CurrentGlobalOrNull (cx)) {
64- JS::RootedValue argval (cx);
64+ JS::Rooted<JS::Value> argval (cx);
6565 if (mozilla::dom::ToJSValue (cx, arg, &argval)) {
6666 return JS_GetTaintOperationFullArgs (cx, name, argval);
6767 }
@@ -73,7 +73,7 @@ static TaintOperation GetTaintOperation(JSContext *cx, const char* name, const n
7373static TaintOperation GetTaintOperation (JSContext *cx, const char * name, const nsTArray<nsString> &args)
7474{
7575 if (cx && JS::CurrentGlobalOrNull (cx)) {
76- JS::RootedValue argval (cx);
76+ JS::Rooted<JS::Value> argval (cx);
7777
7878 if (mozilla::dom::ToJSValue (cx, args, &argval)) {
7979 return JS_GetTaintOperationFullArgs (cx, name, argval);
@@ -86,7 +86,7 @@ static TaintOperation GetTaintOperation(JSContext *cx, const char* name, const n
8686static TaintOperation GetTaintOperation (JSContext *cx, const char * name, const nsTArray<nsCString> &args)
8787{
8888 if (cx && JS::CurrentGlobalOrNull (cx)) {
89- JS::RootedValue argval (cx);
89+ JS::Rooted<JS::Value> argval (cx);
9090
9191 if (mozilla::dom::ToJSValue (cx, args, &argval)) {
9292 return JS_GetTaintOperationFullArgs (cx, name, argval);
@@ -445,11 +445,11 @@ nsresult ReportTaintSink(JSContext *cx, const nsAString &str, const char* name,
445445 return NS_OK;
446446 }
447447
448- JS::RootedValue argval (cx);
448+ JS::Rooted<JS::Value> argval (cx);
449449 if (!mozilla::dom::ToJSValue (cx, arg, &argval))
450450 return NS_ERROR_FAILURE;
451451
452- JS::RootedValue strval (cx);
452+ JS::Rooted<JS::Value> strval (cx);
453453 if (!mozilla::dom::ToJSValue (cx, str, &strval))
454454 return NS_ERROR_FAILURE;
455455
@@ -476,7 +476,7 @@ nsresult ReportTaintSink(JSContext *cx, const nsAString &str, const char* name)
476476 return NS_OK;
477477 }
478478
479- JS::RootedValue strval (cx);
479+ JS::Rooted<JS::Value> strval (cx);
480480 if (!mozilla::dom::ToJSValue (cx, str, &strval)) {
481481 return NS_ERROR_FAILURE;
482482 }
@@ -504,7 +504,7 @@ nsresult ReportTaintSink(JSContext *cx, const nsACString &str, const char* name)
504504 return NS_OK;
505505 }
506506
507- JS::RootedValue strval (cx);
507+ JS::Rooted<JS::Value> strval (cx);
508508 if (!mozilla::dom::ToJSValue (cx, str, &strval)) {
509509 return NS_ERROR_FAILURE;
510510 }
0 commit comments