diff --git a/test/core/fixtures/transformation/api/blacklist/expected.js b/test/core/fixtures/transformation/api/blacklist/expected.js index 934fea14ff..54c0233ca3 100644 --- a/test/core/fixtures/transformation/api/blacklist/expected.js +++ b/test/core/fixtures/transformation/api/blacklist/expected.js @@ -1,6 +1,6 @@ "use strict"; -var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Test = function Test() { _classCallCheck(this, Test); diff --git a/test/core/fixtures/transformation/es6.modules-ignore/exports-default/expected.js b/test/core/fixtures/transformation/es6.modules-ignore/exports-default/expected.js index 2c09a5b8b6..243f60206b 100644 --- a/test/core/fixtures/transformation/es6.modules-ignore/exports-default/expected.js +++ b/test/core/fixtures/transformation/es6.modules-ignore/exports-default/expected.js @@ -1,6 +1,6 @@ "use strict"; -var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var _default = (function () { var _class = function _default() { diff --git a/test/core/fixtures/transformation/es6.modules-ignore/exports-variable/expected.js b/test/core/fixtures/transformation/es6.modules-ignore/exports-variable/expected.js index 5231f638e6..8f6bdc258b 100644 --- a/test/core/fixtures/transformation/es6.modules-ignore/exports-variable/expected.js +++ b/test/core/fixtures/transformation/es6.modules-ignore/exports-variable/expected.js @@ -1,6 +1,6 @@ "use strict"; -var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var foo = 1; var foo = 1, diff --git a/test/core/fixtures/transformation/es6.modules-system/exports-default/expected.js b/test/core/fixtures/transformation/es6.modules-system/exports-default/expected.js index e55e897b43..453baf6142 100644 --- a/test/core/fixtures/transformation/es6.modules-system/exports-default/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/exports-default/expected.js @@ -1,10 +1,10 @@ System.register([], function (_export) { var _default, Foo; - var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; - _export("default", foo); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function foo() {} return { diff --git a/test/core/fixtures/transformation/es6.modules-system/exports-variable/expected.js b/test/core/fixtures/transformation/es6.modules-system/exports-variable/expected.js index 6b0a9eb768..c5ab473b75 100644 --- a/test/core/fixtures/transformation/es6.modules-system/exports-variable/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/exports-variable/expected.js @@ -1,10 +1,10 @@ System.register([], function (_export) { var foo, foo2, foo3, foo4, foo5, foo6, foo8; - var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; - _export("foo7", foo7); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function foo7() {} return { diff --git a/test/core/fixtures/transformation/es6.template-literals/tag-loose/expected.js b/test/core/fixtures/transformation/es6.template-literals/tag-loose/expected.js index 2a42c708b7..a2264017ba 100644 --- a/test/core/fixtures/transformation/es6.template-literals/tag-loose/expected.js +++ b/test/core/fixtures/transformation/es6.template-literals/tag-loose/expected.js @@ -1,5 +1,5 @@ "use strict"; -var _taggedTemplateLiteralLoose = function (strings, raw) { strings.raw = raw; return strings; }; +function _taggedTemplateLiteralLoose(strings, raw) { strings.raw = raw; return strings; } var foo = bar(_taggedTemplateLiteralLoose(["wow\na", "b ", ""], ["wow\\na", "b ", ""]), 42, _.foobar()); \ No newline at end of file diff --git a/test/core/fixtures/transformation/es6.template-literals/tag/expected.js b/test/core/fixtures/transformation/es6.template-literals/tag/expected.js index d572423296..db7bc65355 100644 --- a/test/core/fixtures/transformation/es6.template-literals/tag/expected.js +++ b/test/core/fixtures/transformation/es6.template-literals/tag/expected.js @@ -1,5 +1,5 @@ "use strict"; -var _taggedTemplateLiteral = function (strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }; +function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } var foo = bar(_taggedTemplateLiteral(["wow\na", "b ", ""], ["wow\\na", "b ", ""]), 42, _.foobar()); \ No newline at end of file diff --git a/test/core/fixtures/transformation/spec.proto-to-assign/assignment-expression/expected.js b/test/core/fixtures/transformation/spec.proto-to-assign/assignment-expression/expected.js index 8efad04c17..1a55265b4c 100644 --- a/test/core/fixtures/transformation/spec.proto-to-assign/assignment-expression/expected.js +++ b/test/core/fixtures/transformation/spec.proto-to-assign/assignment-expression/expected.js @@ -1,6 +1,6 @@ "use strict"; -var _defaults = function (obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }; +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } var _foo, _foo$bar, _foo$bar2; diff --git a/test/core/fixtures/transformation/spec.proto-to-assign/assignment-statement/expected.js b/test/core/fixtures/transformation/spec.proto-to-assign/assignment-statement/expected.js index b4529baf22..29606945ba 100644 --- a/test/core/fixtures/transformation/spec.proto-to-assign/assignment-statement/expected.js +++ b/test/core/fixtures/transformation/spec.proto-to-assign/assignment-statement/expected.js @@ -1,5 +1,5 @@ "use strict"; -var _defaults = function (obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }; +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } _defaults(obj, bar); \ No newline at end of file diff --git a/test/core/fixtures/transformation/spec.proto-to-assign/class/expected.js b/test/core/fixtures/transformation/spec.proto-to-assign/class/expected.js index 24e3490941..51c77f4361 100644 --- a/test/core/fixtures/transformation/spec.proto-to-assign/class/expected.js +++ b/test/core/fixtures/transformation/spec.proto-to-assign/class/expected.js @@ -1,10 +1,10 @@ "use strict"; -var _defaults = function (obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }; +function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } -var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) _defaults(subClass, superClass); }; +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) _defaults(subClass, superClass); } var Foo = (function (_Bar) { function Foo() { @@ -18,4 +18,4 @@ var Foo = (function (_Bar) { _inherits(Foo, _Bar); return Foo; -})(Bar); +})(Bar); \ No newline at end of file