Sounds a lot like NodeJS.
It's not like it's the only scripting language available either, OSX comes with ruby, python2, python3 and perl by default.
Fairly niche, but not useless
I could also imagine some sort of Electron-alternative using the builtin JS interpreter for system stuff alongside the builtin webview for the UI
Except when Apple decides to remove it from the default setup.
% which perl
/usr/bin/perl
% which python2
/usr/bin/python2
% which python3
/usr/bin/python3
% which ruby
/usr/bin/ruby