turn method literal keys into assignments in loose mode - fixes #1797
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
"bar"() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
}
|
||||
|
||||
Foo.prototype["bar"] = function bar() {};
|
||||
|
||||
return Foo;
|
||||
})();
|
||||
Reference in New Issue
Block a user