You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
Certain identifiers are acceptable in JavaScript but not in Dart. One common case where these identifiers get used is in Object properties. obj[string] can be used to give an object a property with any name.
In dart2js, JS$ can be prepended to fix certain invalid identifiers, but this won't work for identifiers that contain invalid characters. Additionally, DDC no longer supports JS$. Instead of using JS$, the generator should be able to determine which invalid identifiers are renamable and expose extension methods that rename them (by accessing the JS entity with js_util). For identifiers that aren't renamable, it should suppress that declaration and emit a warning.
The text was updated successfully, but these errors were encountered:
Certain identifiers are acceptable in JavaScript but not in Dart. One common case where these identifiers get used is in Object properties. obj[string] can be used to give an object a property with any name.
In dart2js, JS$ can be prepended to fix certain invalid identifiers, but this won't work for identifiers that contain invalid characters. Additionally, DDC no longer supports JS$. Instead of using JS$, the generator should be able to determine which invalid identifiers are renamable and expose extension methods that rename them (by accessing the JS entity with js_util). For identifiers that aren't renamable, it should suppress that declaration and emit a warning.
The text was updated successfully, but these errors were encountered: