diff --git a/packages/babel/package.json b/packages/babel/package.json index 8bb33cab32..a8a28eb310 100644 --- a/packages/babel/package.json +++ b/packages/babel/package.json @@ -31,7 +31,7 @@ "babel-plugin-dead-code-elimination": "^1.0.2", "babel-plugin-eval": "^1.0.1", "babel-plugin-inline-environment-variables": "^1.0.1", - "babel-plugin-jscript": "^1.0.3", + "babel-plugin-jscript": "^1.0.4", "babel-plugin-member-expression-literals": "^1.0.1", "babel-plugin-property-literals": "^1.0.1", "babel-plugin-proto-to-assign": "^1.0.3", diff --git a/packages/babel/test/fixtures/transformation/jscript/simple-class/expected.js b/packages/babel/test/fixtures/transformation/jscript/simple-class/expected.js index 7636db7c21..3ea408251f 100644 --- a/packages/babel/test/fixtures/transformation/jscript/simple-class/expected.js +++ b/packages/babel/test/fixtures/transformation/jscript/simple-class/expected.js @@ -1,7 +1,8 @@ "use strict"; var Test = (function () { - return function Test() { + function Test() { babelHelpers.classCallCheck(this, Test); - }; + } + return Test; })(); diff --git a/packages/babel/test/fixtures/transformation/jscript/var-named-function-expression/expected.js b/packages/babel/test/fixtures/transformation/jscript/var-named-function-expression/expected.js index b6efb113ca..33697f7b25 100644 --- a/packages/babel/test/fixtures/transformation/jscript/var-named-function-expression/expected.js +++ b/packages/babel/test/fixtures/transformation/jscript/var-named-function-expression/expected.js @@ -1,11 +1,13 @@ "use strict"; var IdenticalName = (function () { - return function IdenticalName(x) { + function IdenticalName(x) { return x; - }; + } + return IdenticalName; })(); (function () { - return function foo() {}; + function foo() {} + return foo; })();