Files
scriptc/tests/corpus/1826-settimeout-arguments-callback.js
2026-07-22 18:08:04 -05:00

9 lines
344 B
JavaScript

// A setTimeout callback reading `arguments` infers the variadic
// func(...dyn[])=>void shape (invariant signature 12): it adapts through the
// checked-dynamic function boundary — the timer invokes it with zero
// arguments, exactly Node.
setTimeout(function () {
console.log("ticked", arguments.length);
}, 0);
console.log("scheduled");