Skip to content

Commit

Permalink
Bug 1872969 - Avoid js keywords as argument names r=nika
Browse files Browse the repository at this point in the history
Argument names in xpidl don't really matter, so this should be a no-op.

Differential Revision: https://phabricator.services.mozilla.com/D197640
  • Loading branch information
zombie committed Jan 5, 2024
1 parent ff86798 commit 30b4718
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dom/workers/nsIWorkerDebuggerManager.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ interface nsIWorkerDebugger;
[scriptable, uuid(d2aa74ee-6b98-4d5d-8173-4e23422daf1e)]
interface nsIWorkerDebuggerManagerListener : nsISupports
{
void onRegister(in nsIWorkerDebugger debugger);
void onRegister(in nsIWorkerDebugger aDebugger);

void onUnregister(in nsIWorkerDebugger debugger);
void onUnregister(in nsIWorkerDebugger aDebugger);
};

[scriptable, builtinclass, uuid(056d7918-dc86-452a-b4e6-86da3405f015)]
Expand Down
4 changes: 2 additions & 2 deletions js/xpconnect/idl/xpccomponents.idl
Original file line number Diff line number Diff line change
Expand Up @@ -482,15 +482,15 @@ interface nsIXPCComponents_Utils : nsISupports
/*
* To be called from JS only.
*
* Call 'function', using the provided stack as the async stack responsible
* Call 'func', using the provided stack as the async stack responsible
* for the call, and propagate its return value or the exception it throws.
* The function is called with no arguments, and 'this' is 'undefined'.
*
* The code in the function will see the given stack frame as the
* asyncCaller of its own stack frame, instead of the current caller.
*/
[implicit_jscontext]
jsval callFunctionWithAsyncStack(in jsval function, in nsIStackFrame stack,
jsval callFunctionWithAsyncStack(in jsval func, in nsIStackFrame stack,
in AString asyncCause);

/*
Expand Down
4 changes: 2 additions & 2 deletions xpcom/base/nsIConsoleService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface nsIConsoleService : nsISupports
{
void logMessage(in nsIConsoleMessage message);

// This helper function executes `function` and redirects any exception
// This helper function executes `func` and redirects any exception
// that may be thrown while running it to the DevTools Console currently
// debugging `targetGlobal`.
//
Expand All @@ -23,7 +23,7 @@ interface nsIConsoleService : nsISupports
// We expect content script exception to be flaged with the content window
// innerWindowID in order to appear in the tab's DevTools.
[implicit_jscontext]
jsval callFunctionAndLogException(in jsval targetGlobal, in jsval function);
jsval callFunctionAndLogException(in jsval targetGlobal, in jsval func);

// This is a variant of LogMessage which allows the caller to determine
// if the message should be output to an OS-specific log. This is used on
Expand Down

0 comments on commit 30b4718

Please sign in to comment.