Skip to content

Instantly share code, notes, and snippets.

@henriquegogo
Created March 8, 2019 04:24
Show Gist options
  • Save henriquegogo/b3c0358e4b1e1db1b762c849d8ff0843 to your computer and use it in GitHub Desktop.
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
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