alibaba / alibaba/lowcode-engine
parseExpression执行方法不正确
Open
bug
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## **Describe the bug (required)** / **详细描述 bug(必填)**
文件路径:`packages/renderer-core/src/utils/common.ts`。

这里用正则去将 `this` 关键字替换为 `__self` 有点粗暴了,比如以下的 js 表达式:
```ts
const mockExpression = {
"type": "JSExpression",
"value": "function (params) { console.log('this') }"
};
```
正常应该是打印出 `this` 字符串,但是 `parseExpression` 执行会打印出 `__self`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.