Skip to content

Instantly share code, notes, and snippets.

View eth-p's full-sized avatar

Ethan P. eth-p

View GitHub Profile
/**
* Test V8 optimization against eval and new Function
* Run with: node --allow-natives-syntax evalFuncOpt.js
* More verbose with: node --trace_opt --trace_deopt --allow-natives-syntax evalFuncOpt.js
*
* More info at: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers
*/
var b = 0;
function getStatus(fn) {