(t *testing.T)
| 506 | } |
| 507 | |
| 508 | func TestCallLessArgsDynamic(t *testing.T) { |
| 509 | const SCRIPT = ` |
| 510 | function A(a, b, c) { |
| 511 | // Make it stashful |
| 512 | function B() { |
| 513 | return a; |
| 514 | } |
| 515 | return String(a) + " " + String(b) + " " + String(c); |
| 516 | } |
| 517 | |
| 518 | A(1, 2); |
| 519 | ` |
| 520 | testScript(SCRIPT, asciiString("1 2 undefined"), t) |
| 521 | } |
| 522 | |
| 523 | func TestCallLessArgsDynamicLocalVar(t *testing.T) { |
| 524 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…