Add test for T2765

This commit is contained in:
Amjad Masad 2016-03-08 00:47:18 -08:00
parent bbc3401c71
commit 57c6c4ea81
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,5 @@
function f() {
let g = async () => {
this;
};
};

View File

@ -0,0 +1,12 @@
function f() {
var _this = this;
let g = function () {
var ref = babelHelpers.asyncToGenerator(function* () {
_this;
});
return function g() {
return ref.apply(this, arguments);
};
}();
};

View File

@ -0,0 +1,8 @@
{
"plugins": [
"transform-es2015-arrow-functions",
"syntax-async-functions",
"transform-async-to-generator",
"external-helpers"
]
}