Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Test all function types
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Mar 8, 2018
1 parent 8c9ed11 commit ef68d8f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions test/form/no-toplevel-return/input.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
module.exports = () => {
return 42;
var foo = function () {
return;
};

var bar = () => {
return;
};

function baz () {
return;
}

module.exports = 42;
14 changes: 12 additions & 2 deletions test/form/no-toplevel-return/output.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
var input = () => {
return 42;
var foo = function () {
return;
};

var bar = () => {
return;
};

function baz () {
return;
}

var input = 42;

export default input;
export { input as __moduleExports };

0 comments on commit ef68d8f

Please sign in to comment.