-
-
Save WebReflection/35e61b9dbb4987e288f256aae73b3a5c to your computer and use it in GitHub Desktop.
JavaScriptCore for macOS and Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -f /usr/lib/jsc ]; then | |
/usr/lib/jsc "$@" | |
elif [ -f /System/Library/Frameworks/JavaScriptCore.framework/Resources/jsc ]; then | |
/System/Library/Frameworks/JavaScriptCore.framework/Resources/jsc "$@" | |
fi |
@LeetCodes it's JavaScriptCore provided by GNOME Web, so it's yet another JS interpreter you can use from console.
Did I answer your question?
I have the same question, and it doesn't answer it - the paths given are macOS-specific
Edit: answer: https://trac.webkit.org/wiki/JSCOnly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how is this for Linux?