Created
March 8, 2019 04:24
-
-
Save henriquegogo/b3c0358e4b1e1db1b762c849d8ff0843 to your computer and use it in GitHub Desktop.
Run jsc (JavaScriptCore) with CommonJS require and console.log functions. Usage: $ jsc jsc-env.js YOURSCRIPT.js
This file contains hidden or 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
console = { log: print }; | |
exports = {}; | |
require = function() { load(...arguments); return exports }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment