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