Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo

This commit is contained in:
Boris Zbarsky
2015-03-09 12:50:03 -04:00
parent ce0417bc93
commit c30fbd4b93
12 changed files with 20 additions and 19 deletions

View File

@@ -167,7 +167,7 @@ BEGIN_TEST(testChromeBuffer)
trusted_fun = JS_GetFunctionObject(fun);
}
JS::RootedFunction fun(cx, JS_NewFunction(cx, CallTrusted, 0, 0, global, "callTrusted"));
JS::RootedFunction fun(cx, JS_NewFunction(cx, CallTrusted, 0, 0, "callTrusted"));
JS::RootedObject callTrusted(cx, JS_GetFunctionObject(fun));
const char *paramName = "f";