Skip to content

Commit

Permalink
Update js/node/node-backend.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed May 10, 2023
1 parent 310cf7e commit 15b6d4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/node/node-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { isMainThread, parentPort, workerData, Worker } from 'worker_threads';
import os from 'os';
import wasm_ from '../../../_node_bindings/plonk_wasm.cjs';
import { fileURLToPath } from 'url';
let filename = fileURLToPath(import.meta.url ?? __filename);
let url = import.meta.url;
let filename = url !== undefined ? fileURLToPath(url) : __filename;

/**
* @type {import("../../node_bindings/plonk_wasm")}
Expand Down

0 comments on commit 15b6d4e

Please sign in to comment.