Skip to content

Instantly share code, notes, and snippets.

@dominictarr
Created October 5, 2011 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominictarr/c93084ce119fa5ea95a9 to your computer and use it in GitHub Desktop.
Save dominictarr/c93084ce119fa5ea95a9 to your computer and use it in GitHub Desktop.
use ƒ instead of function
var _compile = module.constructor.prototype._compile
module.constructor.prototype._compile = function (content, filename) {
content = content.replace(/ƒ/, 'function').replace(/←/, 'return ')
return _compile(content, filename)
}
require('./florin')
require('./using-florin')
var florin = ƒ () {
← 'florinscript!'
}
console.error(florin())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment