[go: nahoru, domu]

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: Dead code for empty catch-block #27550

Open
fsc8000 opened this issue Oct 7, 2016 · 0 comments
Open

dart2js: Dead code for empty catch-block #27550

fsc8000 opened this issue Oct 7, 2016 · 0 comments
Assignees
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js

Comments

@fsc8000
Copy link
Contributor
fsc8000 commented Oct 7, 2016

@rakudrama

This program

main() {
  try {
    throw 123;
  } on dynamic {
  }
}

generates the following JS for main()

    main: function() {
      var exception;
      try {
        throw H.wrapException(123);
      } catch (exception) {
        H.unwrapException(exception);
      }
    }

It seems that there is always a call to unwrapException, even if the exception object is unused.

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

No branches or pull requests

3 participants