[class-properties] Remove unnecessary return and temp variable (#8123)

* Remove unnecessary temp variable

* Update tests
This commit is contained in:
Nicolò Ribaudo
2018-06-08 07:02:36 +02:00
committed by GitHub
parent 415d79bdfe
commit 9f4e2f81d8
14 changed files with 68 additions and 29 deletions

View File

@@ -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();
};