Skip to content

Commit 86c5d89

Browse files
committed
camelCase
1 parent a9f32a8 commit 86c5d89

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/native/libs/System.Runtime.InteropServices.JavaScript.Native/interop/invoke-js.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ function lookupJsImport(functionName: string, jsModuleName: string | null): Func
300300

301301
export function invokeJSFunction(functionJSHandle: JSHandle, args: JSMarshalerArguments): void {
302302
assertRuntimeRunning();
303-
const bound_fn = getJSObjectFromJSHandle(functionJSHandle);
304-
dotnetAssert.check(bound_fn && typeof (bound_fn) === "function" && bound_fn[boundJsFunctionSymbol], () => `Bound function handle expected ${functionJSHandle}`);
303+
const boundFn = getJSObjectFromJSHandle(functionJSHandle);
304+
dotnetAssert.check(boundFn && typeof (boundFn) === "function" && boundFn[boundJsFunctionSymbol], () => `Bound function handle expected ${functionJSHandle}`);
305305
args = fixupPointer(args, 0);
306-
bound_fn(args);
306+
boundFn(args);
307307
}

src/native/libs/System.Runtime.InteropServices.JavaScript.Native/interop/marshal-to-js.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -569,16 +569,16 @@ export function resolveOrRejectPromise(args: JSMarshalerArguments): void {
569569
assertRuntimeRunning();
570570

571571
const res = getArg(args, 1);
572-
const arg_handle = getArg(args, 2);
573-
const arg_value = getArg(args, 3);
572+
const argHandle = getArg(args, 2);
573+
const argValue = getArg(args, 3);
574574

575-
const type = getArgType(arg_handle);
576-
const js_handle = getArgJsHandle(arg_handle);
575+
const type = getArgType(argHandle);
576+
const jsHandle = getArgJsHandle(argHandle);
577577

578-
const holder = getJSObjectFromJSHandle(js_handle) as TaskHolder;
579-
dotnetAssert.check(holder, () => `Cannot find Promise for JSHandle ${js_handle}`);
578+
const holder = getJSObjectFromJSHandle(jsHandle) as TaskHolder;
579+
dotnetAssert.check(holder, () => `Cannot find Promise for JSHandle ${jsHandle}`);
580580

581-
holder.resolveOrReject(type, js_handle, arg_value);
581+
holder.resolveOrReject(type, jsHandle, argValue);
582582
/* TODO-WASM if (receiver_should_free) {
583583
// this works together with AllocHGlobal in JSFunctionBinding.ResolveOrRejectPromise
584584
free(args as any);

0 commit comments

Comments
 (0)