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:
Huáng Jùnliàng
2020-10-14 13:54:41 -04:00
committed by Nicolò Ribaudo
parent 3ccca88178
commit f697e7995d
85 changed files with 861 additions and 24 deletions

View File

@@ -0,0 +1,5 @@
class foo {
static {
this // should not be replaced by undefined
}
}

View File

@@ -0,0 +1,3 @@
{
"plugins": ["transform-modules-commonjs", "syntax-class-static-block"]
}

View File

@@ -0,0 +1,8 @@
"use strict";
class foo {
static {
this; // should not be replaced by undefined
}
}