a2ui-project / a2ui-project/a2ui
Prevent unsafe js reflection like Object.entries(), to better support property renaming
- Ngôn ngữ chính
- TypeScript
- Star
- 16.4k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 134
Mô tả
Using Object.entries() can cause code to break when using a compiler that has property renaming enabled, which is common for 1P.
Context for Googlers:
[go/typescript-optimization-safety-testing](https://goto.google.com/typescript-optimization-safety-testing)
Hướng dẫn đóng góp
Hướng nghiên cứu
Look for existing lint rules or compiler checks in the codebase that flag unsafe reflection. The issue mentions property renaming optimizations common at Google; start by searching for 'Object.entries' usage in the source. Determine how to detect and prevent such patterns, possibly by adding a custom ESLint rule or a build-time check. Verify the fix works with the project's existing test suite for compilation safety.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, typescript
- Lĩnh vực
- build-system, tooling
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100