UNPKG

es6-arrow-function

Version:

Shorthand arrow functions compiled to ES5.

8 lines (6 loc) 218 B
/* jshint esnext:true */ var dynamicThisGetter = () => function(){ return this; }; assert.equal( normalize('('+dynamicThisGetter.toString()+')'), normalize('(function(){ return function(){ return this; }; })') );