We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d253c1 commit f76a460Copy full SHA for f76a460
test/functionTests.js
@@ -78,5 +78,17 @@ describe('Function tests', function() {
78
fn.body.kind.should.be.exactly('block');
79
});
80
81
+ it('test static closure', function() {
82
+ // from expr
83
+ var ast = parser.parseEval('$a = static function() {};');
84
+ var fn = ast.children[0].right;
85
+ fn.kind.should.be.exactly('closure');
86
+ fn.isStatic.should.be.exactly(true);
87
+ // from statement
88
+ ast = parser.parseEval('static function() {};');
89
+ fn = ast.children[0];
90
91
92
+ });
93
94
0 commit comments