Skip to content

Instantly share code, notes, and snippets.

@dherman
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dherman/e68d6e8b0d8bc50168c2 to your computer and use it in GitHub Desktop.
Save dherman/e68d6e8b0d8bc50168c2 to your computer and use it in GitHub Desktop.

%COMPILE(eval(%expr), %env)

==>

do {
  let $callee = eval;
  if ($callee === $runtime.crockEval) {
    let $src = $runtime.crockpile(%COMPILE(%expr, %env), %env);
    let eval = $runtime.es7Eval;
    eval($src)
  } else {
    eval(%COMPILE(%expr, %env))
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment