Lines Matching refs:function
25 "This test checks that toString() round-trip on a function that has prefix, postfix and typeof operators applied to group expression will not remove the grouping. Also checks that evaluation of such a expression produces run-time exception"
30 function postfix_should_preserve_parens(x, y, z) {
35 function prefix_should_preserve_parens(x, y, z) {
41 function both_should_preserve_parens(x, y, z) {
47 function postfix_should_preserve_parens_multi(x, y, z) {
52 function prefix_should_preserve_parens_multi(x, y, z) {
57 function both_should_preserve_parens_multi(x, y, z) {
62 function postfix_should_preserve_parens_multi1(x, y, z) {
67 function prefix_should_preserve_parens_multi1(x, y, z) {
72 function prefix_should_preserve_parens_multi2(x, y, z) {
78 function postfix_should_preserve_parens_multi2(x, y, z) {
88 function typeof_should_preserve_parens(x, y, z) {
92 function typeof_should_preserve_parens1(x, y, z) {
96 function typeof_should_preserve_parens2(x, y, z) {
101 function typeof_should_preserve_parens_multi(x, y, z) {
106 unevalf = function(x) { return '(' + x.toString() + ')'; };
108 function testToString(fn) {
120 function testToStringAndRTFailure(fn)
124 // check that function call produces run-time exception
127 // check that function call produces run-time exception after eval(unevalf)
131 function testToStringAndReturn(fn, p1, p2, retval)
136 // check that function call produces correct result
139 // check that function call produces correct result after eval(unevalf)