Skip to content

Commit

Permalink
Inherit properties in function from method in loose mode (#9135)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte authored and nicolo-ribaudo committed Dec 7, 2018
1 parent f611bb0 commit 4fdb711
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -494,7 +494,8 @@ export default function transformClass(
node.generator,
node.async,
);
func.returnType = node.returnType;
t.inherits(func, node);

const key = t.toComputedKey(node, node.key);
if (t.isStringLiteral(key)) {
func = nameFunction({
Expand Down

0 comments on commit 4fdb711

Please sign in to comment.