Inherit properties in function from method in loose mode (#9135)
This commit is contained in:
parent
f611bb016b
commit
4fdb71151f
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user