Throw when compiling spread in super() but not classes (#12722)

* Throw when compiling spread in `super()` but not classes

* Add comment
This commit is contained in:
Nicolò Ribaudo
2021-02-01 20:16:10 +01:00
committed by GitHub
parent 4f2d47500f
commit d0a965b71f
9 changed files with 71 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class A extends B {
constructor() {
super(...foo);
}
}