MCPcopy Create free account
hub / github.com/dop251/goja / TestCallLessArgsDynamicLocalVar

Function TestCallLessArgsDynamicLocalVar

compiler_test.go:523–536  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

521}
522
523func TestCallLessArgsDynamicLocalVar(t *testing.T) {
524 const SCRIPT = `
525 function f(param) {
526 var a = 42;
527 if (false) {
528 eval("");
529 }
530 return a;
531 }
532 f();
533`
534
535 testScript(SCRIPT, intToValue(42), t)
536}
537
538/*
539func TestFib(t *testing.T) {

Callers

nothing calls this directly

Calls 2

testScriptFunction · 0.85
intToValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…