Skip to content

Support for "unsafe" cases of finally #7

@playXE

Description

@playXE

Starlight needs support for code like this:

function foo() {
  try {
      return 1;
  } finally {
      return 2;
  }
}

Right now it returns 1 but should return 2.

MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch#the_finally-block

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions