(t *testing.T)
| 2167 | } |
| 2168 | |
| 2169 | func TestFunctionToString(t *testing.T) { |
| 2170 | const SCRIPT = ` |
| 2171 | |
| 2172 | Function("arg1", "arg2", "return 42").toString(); |
| 2173 | ` |
| 2174 | |
| 2175 | testScript(SCRIPT, asciiString("function anonymous(arg1,arg2\n) {\nreturn 42\n}"), t) |
| 2176 | } |
| 2177 | |
| 2178 | func TestObjectLiteral(t *testing.T) { |
| 2179 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…