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…
Reference in New Issue