Skip to content

Commit

Permalink
Fixed typo in getQuickJSProxyAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbl committed Jun 24, 2024
1 parent a2f3875 commit 0200167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/worker/BridgeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { InstallationRuntime } from './InstallationRuntime';
import { getModAPI } from './ModAPI';
import './asar';
import { datamod } from './datamod';
import { getQuicKJSProxyAPI, getQuickJS } from './quickjs';
import { getQuickJSProxyAPI, getQuickJS } from './quickjs';
import { provideAPI } from './worker-ipc';

function notNull<TValue>(value: TValue | null | undefined): value is TValue {
Expand Down Expand Up @@ -1051,7 +1051,7 @@ const config = JSON.parse(D2RMM.getConfigJSON());
vm.setProp(
vm.global,
'console',
getQuicKJSProxyAPI(vm, scope, {
getQuickJSProxyAPI(vm, scope, {
debug: async (...args: ConsoleArg[]) => {
console.debug(...args);
},
Expand All @@ -1069,7 +1069,7 @@ const config = JSON.parse(D2RMM.getConfigJSON());
vm.setProp(
vm.global,
'D2RMM',
getQuicKJSProxyAPI(vm, scope, getModAPI(runtime)),
getQuickJSProxyAPI(vm, scope, getModAPI(runtime)),
);
scope.manage(vm.unwrapResult(await vm.evalCodeAsync(code)));
runtime!.modsInstalled.push(runtime.mod.id);
Expand Down
2 changes: 1 addition & 1 deletion src/main/worker/quickjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function getQuickJS(): QuickJSAsyncWASMModule {
return loadedQuickJSAsyncWASMModule;
}

export function getQuicKJSProxyAPI<T extends AsyncSerializableAPI<T>>(
export function getQuickJSProxyAPI<T extends AsyncSerializableAPI<T>>(
vm: QuickJSAsyncContext,
scope: Scope,
api: AsAsyncSerializableAPI<T>,
Expand Down

0 comments on commit 0200167

Please sign in to comment.