New test for return statement

This commit is contained in:
Patrick Steele-Idem 2015-12-31 15:08:23 -07:00
parent 4780d8182b
commit 3ac2e0daca
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
function foo(bar) {
return;
}

View File

@ -0,0 +1,13 @@
'use strict';
module.exports = function(builder) {
return builder.functionDeclaration(
builder.identifier('foo'),
[
builder.identifier('bar')
],
[
builder.returnStatement()
]
);
};