Lines Matching refs:function
34 function CheckException(e) {
42 function TestGlobal(s,e) {
51 function TestFunction(s,e) {
53 return eval("(function(){" + s + " return " + e + "})")();
60 function TestBlock(s,e) {
62 return eval("(function(){ {" + s + "} return " + e + "})")();
68 function TestAll(expected,s,opt_e) {
75 TestFunction(s,e), "function:'" + msg + "'");
81 function TestConflict(s) {
86 function TestNoConflict(s) {
91 function TestLocalConflict(s) {
99 "let x = function() {};",
104 "const x = function() {};",
111 "var x = function() {};",
115 var funbind = "function x() {}";
146 // Test conflicting function/let bindings.
159 TestConflict('(function(x) {' + letbinds[l] + '})();');
162 // Test conflicting function/var bindings.
183 TestNoConflict('(function (x) {' + varbinds[v] + '})();');
186 // Test conflicting catch/function bindings.
189 // Test conflicting parameter/function bindings.
190 TestNoConflict('(function (x) {' + funbind + '})();');