a2ui-project / a2ui-project/a2ui

Prevent unsafe js reflection like Object.entries(), to better support property renaming

Đang mở
#1,327 5 bình luận 0 reaction 1 người được giao Được @josemontespg nhận Xem trên GitHub
javascript P2 type: feature/enhancement
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

Mở 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.