Skip to content

Commit

Permalink
[fix] missing else in prop def
Browse files Browse the repository at this point in the history
  • Loading branch information
Siubaak committed Jan 11, 2025
1 parent b333f93 commit 2a0a61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function* PropertyDefinition(node: acorn.PropertyDefinition, scope: Scope

if (!node.value) {
obj[key] = undefined
} if (node.value.type === 'FunctionExpression' || node.value.type === 'ArrowFunctionExpression') {
} else if (node.value.type === 'FunctionExpression' || node.value.type === 'ArrowFunctionExpression') {
obj[key] = createFunc(node.value, subScope, { superClass })
} else {
obj[key] = yield* evaluate(node.value, subScope)
Expand Down

0 comments on commit 2a0a61f

Please sign in to comment.