Open Bug 1712173 Opened 3 years ago Updated 3 years ago

Devtools Support for Class Static Blocks

Categories

(DevTools :: Console, task)

task

Tracking

(Not tracked)

People

(Reporter: mgaudet, Unassigned)

References

Details

Class static blocks allow one to add execution inside a class definition like:

class A { 
  x = 10;
  static { 
   print("hi, from within class definition")
  }
}

This bug is for tracking devtools updates related to this language feature.

Component: JavaScript Engine → Console
Product: Core → DevTools
Depends on: 1712174

thanks for filing this Matthew!

This will probably impact our parser worker.
We should also check the impact on the debugger:

  • make sure that we can pause in static blocks
  • maybe display those blocks in the outline panel

I did verify we can stop and execute expressions with a debugger; statement test in the patch adding basic support

You need to log in before you can comment on or make changes to this bug.