Lines Matching full:function
38 describe("HoistTest", function () {
41 it('case 1;', function () {
55 it('case 2', function () {
75 // case 3: hoist function declaration in global scope
76 it('case 3', function () {
78 snippetCompiler.compile(`function a() {};`);
89 …// case 4: In case that two function declared directly in global scope with the same name, hoist t…
90 it('case 4', function () {
92 snippetCompiler.compile(`function a() {}; function a() {}`);
104 …// case 5: hoisting of function declaration is of higher priority than var declared variables with…
105 it('case 5', function () {
107 snippetCompiler.compile(`var a = 1; function a() {}`);
120 // case 6: hoist var declared variable in function scope
121 it('case 6', function () {
123 snippetCompiler.compile(`function a() {var a = 1;}`);
139 // case 7: hoist function declaration in function scope
140 it('case 7', function () {
142 snippetCompiler.compile(`function a() {function b() {}};`);
157 it('case 8', function () {
173 // case 9: temporary dead zone of let in function scope
174 it('case 9', function () {
176 snippetCompiler.compile(`function b() {
194 it('case 10', function () {