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

[dart2js] Problems with statement labels in generated code #51653

Open
3 tasks
rakudrama opened this issue Mar 7, 2023 · 1 comment
Open
3 tasks

[dart2js] Problems with statement labels in generated code #51653

rakudrama opened this issue Mar 7, 2023 · 1 comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. dart2js-optimization web-dart2js

Comments

@rakudrama
Copy link
Member

@rakudrama rakudrama added web-dart2js dart2js-optimization area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. labels Mar 7, 2023
@rakudrama
Copy link
Member Author

Example useless label, where the label and break statements could be removed

      else {
        base = A._Parser_toType(t1, parser.e, head);
        $label0$0:
          if (12 === base._kind) {
            stack.push(A._Universe__lookupGenericFunctionRti(t1, base, $arguments, parser.n));
            break $label0$0;
          } else {
            stack.push(A._Universe__lookupBindingRti(t1, base, $arguments));
            break $label0$0;
          }
      }

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. dart2js-optimization web-dart2js
Projects
None yet
Development

No branches or pull requests

1 participant