Transform class static block (#12143)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
committed by
Nicolò Ribaudo
parent
3ccca88178
commit
f697e7995d
@@ -0,0 +1,5 @@
|
||||
class foo {
|
||||
static {
|
||||
this // should not be replaced by undefined
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-modules-commonjs", "syntax-class-static-block"]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
class foo {
|
||||
static {
|
||||
this; // should not be replaced by undefined
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user