-
-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(minifier): minimize computed property access #8162
base: main
Are you sure you want to change the base?
feat(minifier): minimize computed property access #8162
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
test_same("a[P]"); | ||
test_same("a[$]"); | ||
test_same("a[p()]"); | ||
// test_same("a['default']"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keywords seems to be not allowed for ES3, but I guess this is fine for us.
// upper case lower half of o from phonetic extensions set. | ||
// valid in Safari, not in Firefox, IE. | ||
// test_same("a['\\u1d17A']"); | ||
// Latin capital N with tilde - nice if we handled it, but for now let's | ||
// only allow simple Latin (aka ASCII) to be converted. | ||
// test_same("a['\\u00d1StuffAfter']"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\u1d17A
is invalid for ES5 (ES5 uses Unicode 3.0 and that character was introduced in Unicode 3.1) and valid for ES2015 (ES2015 uses Unicode 5.1).
\u00d1
is valid for ES3+.
CodSpeed Performance ReportMerging #8162 will not alter performanceComparing Summary
|
This falls under substitute alternative syntax. I'll move the code around when I get the time. |
Ported
ConvertToDottedProperties
partially. The rest seems to be mostly handled by #8147.