Add fixture for known bug
This commit is contained in:
parent
ccf2f56085
commit
31b85a36dd
@ -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;
|
||||
@ -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;
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-es2015-function-name", [ "transform-es2015-arrow-functions", { "spec": true } ]]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user