first commit

This commit is contained in:
me
2026-04-08 21:25:17 +03:00
parent 3681b8eccd
commit 371b14c5e3
173 changed files with 14126 additions and 0 deletions

28
javascript/TestJS.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -euo pipefail
if [[ -z "$2" ]] ; then
echo Usage: $(basename "$0") TEST-CLASS MODE VARIANT?
exit 1
fi
CLASS="$1"
ARGS="$2 ${3-}"
OUT=__out
DIR="$(dirname "$0")"
LIB="$DIR/graal"
rm -rf "$OUT"
javac \
-encoding utf-8 \
-d "$OUT" \
"--class-path=$LIB/*:$DIR/../common:$DIR" \
"$DIR/${CLASS//\.//}.java" \
&& java -ea \
--enable-native-access=org.graalvm.truffle \
-Dsun.misc.unsafe.memory.access=allow \
"--module-path=$LIB" \
"--class-path=$OUT" \
"$CLASS" $ARGS