UNPKG
es6-arrow-function
Version:
latest (0.6.6)
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1
Shorthand arrow functions compiled to ES5.
github.com/square/es6-arrow-function
es6-arrow-function
/
test
/
examples
/
does-not-bind-this-from-standard-function.js
8 lines
(6 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
/* jshint esnext:true */
var
dynamicThisGetter
= (
) =>
function
(
){
return
this
; }; assert.
equal
(
normalize
(
'('
+dynamicThisGetter.
toString
()+
')'
),
normalize
(
'(function(){ return function(){ return this; }; })'
) );