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
dart2js: more nuanced identification of valid names #7554
Comments
cc @ErikCorryGoogle. |
We should probably include the 3 and 4-letter ones too. Stephen, can you generate the list? Set owner to @rakudrama. |
This should do until we generate all the names in a form usable by the compiler. 3: 4: Set owner to @ErikCorryGoogle. |
An additional validity predicate is required for:
See Issue #8460 for more info |
Added TriageForM5 label. |
cc @rakudrama. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
The following are fields on DOM objects (according to WebKit IDL, there may be more in other browsers).
Q a b c d e f r x y z
ch cx cy db dx dy fr fx fy go id k1 k2 k3 k4 r1 r2 rx ry x1 x2 y1 y2
This means they should not be used as (possibly minified) method names. Calling, e.g. obj.a() on a CSSMatrix will attempt to call a number instead of signalling noSuchMethod (either via a TypeError or a handler on Object.prototype.a).
But it is perfectly fine to use these short names as parameter names, local variable names, or names of top level isolate functions.
dart2js should use different validity predicates for:
The text was updated successfully, but these errors were encountered: