Skip to content
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

Allow main to be any member, not just a function declaration #21950

Open
gbracha opened this issue Dec 22, 2014 · 0 comments
Open

Allow main to be any member, not just a function declaration #21950

gbracha opened this issue Dec 22, 2014 · 0 comments
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@gbracha
Copy link
Contributor

gbracha commented Dec 22, 2014

The spec is changing to allow the main function of a script to be defined via a getter (implictly defined by a field, or explcitly as a getter). See section 18.4 in the latest draft (1.9) in the repo. TC52 has been given a heads up why this was necessary; it will have to go into the 3rd edition at the next spec revision, but AFIK no one objects and it will likely be approved in the next meeting on January 14th.

See also https://codereview.chromium.org/815963002/ for tests.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Mar 1, 2016
@vsmenon vsmenon added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants