Nicolò Ribaudo d0a965b71f
Throw when compiling spread in super() but not classes (#12722)
* Throw when compiling spread in `super()` but not classes

* Add comment
2021-02-01 20:16:10 +01:00

6 lines
63 B
JavaScript

class A extends B {
constructor() {
super(...foo);
}
}