pasta-sourcemaps icon indicating copy to clipboard operation
pasta-sourcemaps copied to clipboard

Support class static blocks

Open tchetwin opened this issue 4 years ago • 0 comments

The class static blocks proposal introduces a new lexical scope nested within a class body:

class C {
    static {
        throw new Error("foo");
    }
}

[email protected] has implemented this (currently) Stage 3 proposal. playground

We should investigate what changes, if any, need to be made to pasta to support this feature.


This currently shows in Chrome console:

VM56:3 Uncaught Error: foo
    at <static_initializer> (<anonymous>:3:15)
    at <anonymous>:1:1

tchetwin avatar Jul 13 '21 21:07 tchetwin