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 453baf6142..7854fc3ce8 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,4 +1,6 @@ System.register([], function (_export) { + "use strict"; + var _default, Foo; _export("default", foo); @@ -10,8 +12,6 @@ System.register([], function (_export) { return { setters: [], execute: function () { - "use strict"; - _export("default", 42); _export("default", {}); @@ -39,4 +39,4 @@ System.register([], function (_export) { _export("default", Foo); } }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/exports-from/expected.js b/test/core/fixtures/transformation/es6.modules-system/exports-from/expected.js index c1eaca763d..b7b8242360 100644 --- a/test/core/fixtures/transformation/es6.modules-system/exports-from/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/exports-from/expected.js @@ -1,4 +1,6 @@ System.register(["foo"], function (_export) { + "use strict"; + return { setters: [function (_foo) { for (var _key in _foo) { @@ -19,8 +21,6 @@ System.register(["foo"], function (_export) { _export("bar", _foo.bar); }], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/exports-named/expected.js b/test/core/fixtures/transformation/es6.modules-system/exports-named/expected.js index 410345bcfa..86487ee2f5 100644 --- a/test/core/fixtures/transformation/es6.modules-system/exports-named/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/exports-named/expected.js @@ -1,9 +1,9 @@ System.register([], function (_export) { + "use strict"; + return { setters: [], execute: function () { - "use strict"; - _export("foo", foo); _export("foo", foo); @@ -19,4 +19,4 @@ System.register([], function (_export) { _export("bar", bar); } }; -}); \ No newline at end of file +}); 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 c5ab473b75..bc93dd73b5 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,4 +1,6 @@ System.register([], function (_export) { + "use strict"; + var foo, foo2, foo3, foo4, foo5, foo6, foo8; _export("foo7", foo7); @@ -10,8 +12,6 @@ System.register([], function (_export) { return { setters: [], execute: function () { - "use strict"; - foo = 1; _export("foo", foo); @@ -43,4 +43,4 @@ System.register([], function (_export) { _export("foo3", foo3 = 5); } }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/get-module-name-option/expected.js b/test/core/fixtures/transformation/es6.modules-system/get-module-name-option/expected.js index 0f7fc369ae..0def1f9524 100644 --- a/test/core/fixtures/transformation/es6.modules-system/get-module-name-option/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/get-module-name-option/expected.js @@ -1,8 +1,8 @@ System.register("my custom module name", [], function (_export) { + "use strict"; + return { setters: [], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js index 4056aa7a5e..ad3421dd2e 100644 --- a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js @@ -1,4 +1,6 @@ System.register(["./evens"], function (_export) { + "use strict"; + var isEven, p, isOdd; _export("nextOdd", nextOdd); @@ -12,8 +14,6 @@ System.register(["./evens"], function (_export) { isEven = _evens.isEven; }], execute: function () { - "use strict"; - p = 5; _export("p", p); @@ -27,4 +27,4 @@ System.register(["./evens"], function (_export) { _export("isOdd", isOdd); } }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/imports-default/expected.js b/test/core/fixtures/transformation/es6.modules-system/imports-default/expected.js index 2cb90409c2..16a71b2ed4 100644 --- a/test/core/fixtures/transformation/es6.modules-system/imports-default/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/imports-default/expected.js @@ -1,12 +1,12 @@ System.register(["foo"], function (_export) { + "use strict"; + var foo, foo2; return { setters: [function (_foo) { foo = _foo["default"]; foo2 = _foo["default"]; }], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/imports-glob/expected.js b/test/core/fixtures/transformation/es6.modules-system/imports-glob/expected.js index 67e60e45ca..5df9008d7c 100644 --- a/test/core/fixtures/transformation/es6.modules-system/imports-glob/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/imports-glob/expected.js @@ -1,11 +1,11 @@ System.register(["foo"], function (_export) { + "use strict"; + var foo; return { setters: [function (_foo) { foo = _foo; }], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/imports-mixing/expected.js b/test/core/fixtures/transformation/es6.modules-system/imports-mixing/expected.js index 9ac0cd5ce2..786d2e6869 100644 --- a/test/core/fixtures/transformation/es6.modules-system/imports-mixing/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/imports-mixing/expected.js @@ -1,12 +1,12 @@ System.register(["foo"], function (_export) { + "use strict"; + var foo, xyz; return { setters: [function (_foo) { foo = _foo["default"]; xyz = _foo.baz; }], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/imports-named/expected.js b/test/core/fixtures/transformation/es6.modules-system/imports-named/expected.js index b66550bded..e6704667be 100644 --- a/test/core/fixtures/transformation/es6.modules-system/imports-named/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/imports-named/expected.js @@ -1,4 +1,6 @@ System.register(["foo"], function (_export) { + "use strict"; + var bar, bar2, baz, baz2, baz3, xyz; return { setters: [function (_foo) { @@ -9,8 +11,6 @@ System.register(["foo"], function (_export) { baz3 = _foo.bar; xyz = _foo.xyz; }], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/imports/expected.js b/test/core/fixtures/transformation/es6.modules-system/imports/expected.js index 2b02e610fc..005c4b922f 100644 --- a/test/core/fixtures/transformation/es6.modules-system/imports/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/imports/expected.js @@ -1,8 +1,8 @@ System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) { + "use strict"; + return { setters: [function (_foo) {}, function (_fooBar) {}, function (_directoryFooBar) {}], - execute: function () { - "use strict"; - } + execute: function () {} }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/overview/expected.js b/test/core/fixtures/transformation/es6.modules-system/overview/expected.js index b4b80d7d38..c818618f83 100644 --- a/test/core/fixtures/transformation/es6.modules-system/overview/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/overview/expected.js @@ -1,4 +1,6 @@ System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) { + "use strict"; + var foo, foo2, bar, bar2, test2; return { setters: [function (_foo) { @@ -8,8 +10,6 @@ System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) { bar2 = _foo.foo; }, function (_fooBar) {}, function (_directoryFooBar) {}], execute: function () { - "use strict"; - _export("test", test); test2 = 5; @@ -19,4 +19,4 @@ System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) { _export("default", test); } }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es6.modules-system/remap/expected.js b/test/core/fixtures/transformation/es6.modules-system/remap/expected.js index c0922ff2b4..7bedb706ab 100644 --- a/test/core/fixtures/transformation/es6.modules-system/remap/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/remap/expected.js @@ -1,10 +1,10 @@ System.register([], function (_export) { + "use strict"; + var test, a, b, d; return { setters: [], execute: function () { - "use strict"; - test = 2; _export("test", test); @@ -39,4 +39,4 @@ System.register([], function (_export) { _export("f", _export("e", d = 4)); } }; -}); \ No newline at end of file +}); diff --git a/test/core/fixtures/transformation/es7.decorators/class-getter-and-setter/expected.js b/test/core/fixtures/transformation/es7.decorators/class-getter-and-setter/expected.js index 8e9b70a100..8aa07f0846 100644 --- a/test/core/fixtures/transformation/es7.decorators/class-getter-and-setter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/class-getter-and-setter/expected.js @@ -8,8 +8,8 @@ var Foo = (function () { babelHelpers.createDecoratedClass(Foo, [{ key: "foo", decorators: [bar, foo], - get: function get() {}, - set: function set(bar) {} + get: function () {}, + set: function (bar) {} }]); return Foo; })(); diff --git a/test/core/fixtures/transformation/es7.decorators/class-getter/expected.js b/test/core/fixtures/transformation/es7.decorators/class-getter/expected.js index 06b1d2294e..8c7d3a793d 100644 --- a/test/core/fixtures/transformation/es7.decorators/class-getter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/class-getter/expected.js @@ -8,7 +8,7 @@ var Foo = (function () { babelHelpers.createDecoratedClass(Foo, [{ key: "foo", decorators: [bar], - get: function get() {} + get: function () {} }]); return Foo; })(); diff --git a/test/core/fixtures/transformation/es7.decorators/class-init-instance-props/expected.js b/test/core/fixtures/transformation/es7.decorators/class-init-instance-props/expected.js index e564a5f47e..db03a7b153 100644 --- a/test/core/fixtures/transformation/es7.decorators/class-init-instance-props/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/class-init-instance-props/expected.js @@ -11,7 +11,7 @@ var Foo = (function () { babelHelpers.createDecoratedClass(Foo, [{ key: "foo", decorators: [bar], - initializer: function initializer() { + initializer: function () { return "Bar"; }, enumerable: true diff --git a/test/core/fixtures/transformation/es7.decorators/class-init-static-props/expected.js b/test/core/fixtures/transformation/es7.decorators/class-init-static-props/expected.js index 8bdff77924..6c0c573906 100644 --- a/test/core/fixtures/transformation/es7.decorators/class-init-static-props/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/class-init-static-props/expected.js @@ -10,7 +10,7 @@ var Foo = (function () { babelHelpers.createDecoratedClass(Foo, null, [{ key: "foo", decorators: [bar], - initializer: function initializer() { + initializer: function () { return "Bar"; }, enumerable: true diff --git a/test/core/fixtures/transformation/es7.decorators/class-setter/expected.js b/test/core/fixtures/transformation/es7.decorators/class-setter/expected.js index 57426dd80c..7b9537b539 100644 --- a/test/core/fixtures/transformation/es7.decorators/class-setter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/class-setter/expected.js @@ -8,7 +8,7 @@ var Foo = (function () { babelHelpers.createDecoratedClass(Foo, [{ key: "foo", decorators: [bar], - set: function set(arg) {} + set: function (arg) {} }]); return Foo; })(); diff --git a/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/actual.js b/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/actual.js index 772c63c875..37a0b6a98f 100644 --- a/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/actual.js +++ b/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/actual.js @@ -5,7 +5,7 @@ var obj = { }, @foo - set foo() { + set foo(bar) { } }; diff --git a/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/expected.js b/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/expected.js index 117515628e..68c9af550f 100644 --- a/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/object-getter-and-setter/expected.js @@ -3,6 +3,6 @@ var obj = babelHelpers.createDecoratedObject([{ key: "foo", decorators: [foo, foo], - get: function get() {}, - set: function set() {} + get: function () {}, + set: function (bar) {} }]); diff --git a/test/core/fixtures/transformation/es7.decorators/object-getter/expected.js b/test/core/fixtures/transformation/es7.decorators/object-getter/expected.js index bb651cf283..e0aa727de6 100644 --- a/test/core/fixtures/transformation/es7.decorators/object-getter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/object-getter/expected.js @@ -3,5 +3,5 @@ var obj = babelHelpers.createDecoratedObject([{ key: "foo", decorators: [foo], - get: function get() {} + get: function () {} }]); diff --git a/test/core/fixtures/transformation/es7.decorators/object-setter/actual.js b/test/core/fixtures/transformation/es7.decorators/object-setter/actual.js index ec760bb339..52eb95db88 100644 --- a/test/core/fixtures/transformation/es7.decorators/object-setter/actual.js +++ b/test/core/fixtures/transformation/es7.decorators/object-setter/actual.js @@ -1,6 +1,6 @@ var obj = { @foo - set foo() { + set foo(bar) { } }; diff --git a/test/core/fixtures/transformation/es7.decorators/object-setter/expected.js b/test/core/fixtures/transformation/es7.decorators/object-setter/expected.js index 6b16d5c65c..ee3dc12281 100644 --- a/test/core/fixtures/transformation/es7.decorators/object-setter/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/object-setter/expected.js @@ -3,5 +3,5 @@ var obj = babelHelpers.createDecoratedObject([{ key: "foo", decorators: [foo], - set: function set() {} + set: function (bar) {} }]); diff --git a/test/core/fixtures/transformation/es7.decorators/object/expected.js b/test/core/fixtures/transformation/es7.decorators/object/expected.js index efe805cf25..7a7cc30560 100644 --- a/test/core/fixtures/transformation/es7.decorators/object/expected.js +++ b/test/core/fixtures/transformation/es7.decorators/object/expected.js @@ -3,18 +3,18 @@ var obj = babelHelpers.createDecoratedObject([{ key: "bar", decorators: [foo], - initializer: function initializer() { - return function () {}; + initializer: function () { + return function bar() {}; } }, { key: "foo", decorators: [bar], - initializer: function initializer() { + initializer: function () { return "lol"; } }, { key: "yes", - initializer: function initializer() { + initializer: function () { return "wow"; } }]); diff --git a/test/core/fixtures/transformation/runtime/full/expected.js b/test/core/fixtures/transformation/runtime/full/expected.js index 2f08b10a1c..3f3795a497 100644 --- a/test/core/fixtures/transformation/runtime/full/expected.js +++ b/test/core/fixtures/transformation/runtime/full/expected.js @@ -1,20 +1,21 @@ "use strict"; -var _Object$defineProperty = require("babel-runtime/core-js/object/define-property")["default"]; - -var _Symbol = require("babel-runtime/core-js/symbol")["default"]; - -var _regeneratorRuntime = require("babel-runtime/regenerator")["default"]; - -var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"]; - -var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"]; - _Object$defineProperty(exports, "__esModule", { value: true }); exports.giveWord = giveWord; + +var _regeneratorRuntime = require("babel-runtime/regenerator")["default"]; + +var _Object$defineProperty = require("babel-runtime/core-js/object/define-property")["default"]; + +var _Symbol = require("babel-runtime/core-js/symbol")["default"]; + +var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"]; + +var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"]; + var marked0$0 = [giveWord].map(_regeneratorRuntime.mark); var _someModule = require("someModule"); @@ -41,4 +42,4 @@ function giveWord() { } _someModule2["default"]; -bar; \ No newline at end of file +bar; diff --git a/test/core/fixtures/transformation/source-maps/class/expected.js b/test/core/fixtures/transformation/source-maps/class/expected.js index c9b2c12183..25517b3e99 100644 --- a/test/core/fixtures/transformation/source-maps/class/expected.js +++ b/test/core/fixtures/transformation/source-maps/class/expected.js @@ -7,7 +7,7 @@ var Test = (function () { babelHelpers.createClass(Test, [{ key: "bar", - get: function get() { + get: function () { throw new Error("wow"); } }]);