relax key aliases for plain methods - fixes #1649

This commit is contained in:
Sebastian McKenzie
2015-05-30 23:53:39 -04:00
parent 2f7743cafb
commit f642c2baa8
3 changed files with 35 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
// #1649
class Foo {
[Symbol()]() {}
[Symbol()]() {}
}

View File

@@ -0,0 +1,18 @@
// #1649
"use strict";
var Foo = (function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
babelHelpers.createClass(Foo, [{
key: Symbol(),
value: function () {}
}, {
key: Symbol(),
value: function () {}
}]);
return Foo;
})();