add regression test - fixes #3028

This commit is contained in:
Sebastian McKenzie
2015-11-13 03:37:43 -08:00
parent 9d8db74517
commit 9f6dcdbc29
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class Child extends Parent {
constructor() {
super();
}
scopedFunctionWithThis = () => {
this.name = {};
}
}

View File

@@ -0,0 +1,19 @@
"use strict";
var Child = (function (_Parent) {
babelHelpers.inherits(Child, _Parent);
function Child() {
babelHelpers.classCallCheck(this, Child);
var _this = babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(Child).call(this));
_this.scopedFunctionWithThis = function () {
_this.name = {};
};
return _this;
}
return Child;
})(Parent);

View File

@@ -0,0 +1,4 @@
{
"plugins": ["external-helpers-2"],
"presets": ["stage-0", "es2015"]
}