* #7349 - Add "use strict" directive to transformed class bodies * Update tests (#7349) * Add test for program with use strict directive (#7349) * Update tests (#7349) * Update source mapping (#7349) * Add test for parent blockStatement with use strict directive (#7349) * Update tests (#7349) * Update tests (#7349) * Update tests (#7349) * Add test for constructor-only class (#7349) * Constructor only classes are strict, too But constructor only that use non-simple parameters must use a strict function wrapper. * Fix test * Wrapper not needed if class is already strict * Revert change to lerna.json
49 lines
2.2 KiB
JavaScript
49 lines
2.2 KiB
JavaScript
var Test =
|
|
/*#__PURE__*/
|
|
function (_Foo) {
|
|
"use strict";
|
|
|
|
babelHelpers.inherits(Test, _Foo);
|
|
|
|
function Test() {
|
|
var _babelHelpers$getProt, _babelHelpers$get;
|
|
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Test);
|
|
woops.super.test();
|
|
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Test).call(this));
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(_this);
|
|
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Test).apply(this, arguments));
|
|
_this = babelHelpers.possibleConstructorReturn(this, (_babelHelpers$getProt = babelHelpers.getPrototypeOf(Test)).call.apply(_babelHelpers$getProt, [this, "test"].concat(Array.prototype.slice.call(arguments))));
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", babelHelpers.assertThisInitialized(_this)).apply(_this, arguments);
|
|
|
|
(_babelHelpers$get = babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", babelHelpers.assertThisInitialized(_this))).call.apply(_babelHelpers$get, [_this, "test"].concat(Array.prototype.slice.call(arguments)));
|
|
|
|
return _this;
|
|
}
|
|
|
|
babelHelpers.createClass(Test, [{
|
|
key: "test",
|
|
value: function test() {
|
|
var _babelHelpers$get2;
|
|
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this).call(this);
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this).apply(this, arguments);
|
|
|
|
(_babelHelpers$get2 = babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", this)).call.apply(_babelHelpers$get2, [this, "test"].concat(Array.prototype.slice.call(arguments)));
|
|
}
|
|
}], [{
|
|
key: "foo",
|
|
value: function foo() {
|
|
var _babelHelpers$get3;
|
|
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this).call(this);
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this).apply(this, arguments);
|
|
|
|
(_babelHelpers$get3 = babelHelpers.get(babelHelpers.getPrototypeOf(Test), "foo", this)).call.apply(_babelHelpers$get3, [this, "test"].concat(Array.prototype.slice.call(arguments)));
|
|
}
|
|
}]);
|
|
return Test;
|
|
}(Foo);
|