pass correct function scope to nameMethod.property when naming class methods - fixes #1456

This commit is contained in:
Sebastian McKenzie
2015-05-06 16:03:15 +01:00
parent 3757bc6b9a
commit bf0e4ede00
3 changed files with 24 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class Foo {
t(t) {
return t;
}
}

View File

@@ -0,0 +1,15 @@
"use strict";
var Foo = (function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
babelHelpers.createClass(Foo, [{
key: "t",
value: function t(_t) {
return _t;
}
}]);
return Foo;
})();