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

Function TestFuncParamRestStackSimple

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

Source from the content-addressed store, hash-verified

4248}
4249
4250func TestFuncParamRestStackSimple(t *testing.T) {
4251 const SCRIPT = `
4252 function f(arg1, ...rest) {
4253 return rest;
4254 }
4255 let ar = f(1, 2, 3);
4256 ar.join(",");
4257 `
4258 testScript(SCRIPT, asciiString("2,3"), t)
4259}
4260
4261func TestFuncParamRestStashSimple(t *testing.T) {
4262 const SCRIPT = `

Callers

nothing calls this directly

Calls 2

testScriptFunction · 0.85
asciiStringTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…