Lines Matching full:function
42 describe("FunctionDeclarationTest", function () {
43 it('function definition in the global scope', function () {
45 snippetCompiler.compile("function foo() {}");
60 it('function redefinition in the global scope', function () {
63 function foo() {}
64 function foo() {}
79 it('function definition inside a function', function () {
81 snippetCompiler.compile(`function out() {function foo() {}}`);
101 it("function expression", function () {
103 snippetCompiler.compile("let foo = function() {}");
113 it("Parameters with initializer", function () {
114 let compilerunit = compileAllSnippet("function test(a, b = 1) {}");
148 it("Rest Parameters", function () {
150 snippetCompiler.compile(`function test(a, ...b) {}`);