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.cmd Normal file
View File

@@ -0,0 +1,28 @@
@echo off
if "%~2" == "" (
echo Usage: %~n0 TEST-CLASS MODE VARIANT?
exit /b 1
)
set "OUT=__OUT"
set "CLASS=%~1"
set "ARGS=%~2 %~3"
set "DIR=%~dp0"
set "DIR=%DIR:~0,-1%"
set "LIB=%DIR%/graal/*"
if exist "%OUT%" rmdir /s /q "%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:~0,-2%" ^
"--class-path=%OUT%" ^
"%CLASS%" %ARGS%