Add fixture for known bug

This commit is contained in:
Diogo Franco (Kovensky) 2016-12-16 11:25:42 +09:00
parent ccf2f56085
commit 31b85a36dd
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,5 @@
// I don't know if this is a bug with arrow-functions spec: true
// or with function-name, but the functions are missing their names.
const x = () => x;
const y = x => x();
const z = { z: () => y(x) }.z;

View File

@ -0,0 +1,16 @@
var _this = this;
// I don't know if this is a bug with arrow-functions spec: true
// or with function-name, but the functions are missing their names.
const x = function () {
babelHelpers.newArrowCheck(this, _this);
return x;
}.bind(this);
const y = function (x) {
babelHelpers.newArrowCheck(this, _this);
return x();
}.bind(this);
const z = { z: function z() {
babelHelpers.newArrowCheck(this, _this);
return y(x);
}.bind(this) }.z;

View File

@ -0,0 +1,3 @@
{
"plugins": ["external-helpers", "transform-es2015-function-name", [ "transform-es2015-arrow-functions", { "spec": true } ]]
}