snapshot of https://github.com/pion/webrtc.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s

This commit is contained in:
upstream-mirror
2026-09-15 20:06:07 +05:00
commit 8acb1a3a29
394 changed files with 78746 additions and 0 deletions

30
test-wasm/go_js_wasm_exec Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
# SPDX-FileCopyrightText: 2019 Alex Browne
# SPDX-License-Identifier: MIT
# Check Node.js version
if [[ $(node --version) =~ v[0-9]\. ]]
then
echo "Node.js version >= 10 is required"
exit 1
fi
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
NODE_WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec_node.js"
WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec.js"
if test -f "$NODE_WASM_EXEC"; then
exec node --require="${DIR}/node_shim.js" "$NODE_WASM_EXEC" "$@"
else
exec node --require="${DIR}/node_shim.js" "$WASM_EXEC" "$@"
fi