fix: 兼容某些老的通过 JSE 来表达函数的场景

This commit is contained in:
LeoYuan 袁力皓 2023-02-08 19:50:51 +08:00
parent 62289e5995
commit df8a750746

View File

@ -135,5 +135,9 @@ export function generateFunction(
return functionSource;
}
if (isJSExpression(value)) {
return value.value;
}
throw new CodeGeneratorError('Not a JSFunction or JSExpression');
}