Pascal is fast in terms of compilation and runtime. It has good error handling. You can threads, do generics, etc.
Unlike Python or C, a Pascal program you write now will likely compile correctly without modifications a decade from now.
If you're hell bent on Pascal then consider having it transpile to javascript
Free Pascal and Lazarus are FOSS development tools to cross compile Pascal code. It is semi-Delphi compatible.
In 1985 I discovered Turbo Pascal for DOS in High School on IBM PC-XT systems. Pascal has a large library of code you can borrow from or use in your code. I think it is a good language for cross compiling.
As someone says elsewhere Javascript is good cross-platform, but AFAIK it's an interpreted language, and may not run as fast as a compiled language.
You need to look at the pros and cons, and your use-cases.
Don't fight the JS beast. Just join it!