[class-properties] Remove unnecessary return and temp variable (#8123)
* Remove unnecessary temp variable * Update tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
let Foo = function Foo() {
|
||||
"use strict";
|
||||
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
super();
|
||||
};
|
||||
Reference in New Issue
Block a user