From 71a03efe02d1e719e57182bf6f4fb5696748d0e5 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 17 Nov 2026 09:20:53 +0800 Subject: [PATCH] Import scripts/verify-packed-webrtc-runtime.mjs --- scripts/verify-packed-webrtc-runtime.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/verify-packed-webrtc-runtime.mjs b/scripts/verify-packed-webrtc-runtime.mjs index cc13d14..d7dbb22 100644 --- a/scripts/verify-packed-webrtc-runtime.mjs +++ b/scripts/verify-packed-webrtc-runtime.mjs @@ -1,12 +1,13 @@ // Child process for verify-packed-webrtc.mjs. Requires Node >=22.15. import assert from 'node:assert/strict' +import { realpathSync } from 'node:fs' import { registerHooks } from 'node:module' import { pathToFileURL } from 'node:url' import { setTimeout as delay } from 'node:timers/promises' assert.equal(typeof globalThis.require, 'undefined', 'smoke must run in pure ESM') assert.equal(process.env.ELECTRON_RUN_AS_NODE, undefined, 'run with the Node runtime, not Electron') -const [entry, bundle] = process.argv.slice(2).map(path => pathToFileURL(path).href) +const [entry, bundle] = process.argv.slice(2).map(path => pathToFileURL(realpathSync(path)).href) let nativeAttempts = 0 const hooks = registerHooks({ resolve(specifier, context, next) {