Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user