mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +00:00
fix: 兼容某些老的通过 JSE 来表达函数的场景
This commit is contained in:
parent
62289e5995
commit
df8a750746
@ -135,5 +135,9 @@ export function generateFunction(
|
||||
return functionSource;
|
||||
}
|
||||
|
||||
if (isJSExpression(value)) {
|
||||
return value.value;
|
||||
}
|
||||
|
||||
throw new CodeGeneratorError('Not a JSFunction or JSExpression');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user