mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
A CommonJS function with parameters that reads `arguments` was refused because sloppy-mode `arguments` aliases the parameters. Strict code (a 'use strict' prologue on the file or an enclosing function, or a class body) and functions with non-simple parameter lists (defaults or destructuring) get Node's unmapped object, whose elements never alias the parameters, so they now take the hidden arguments array the way ES module functions and class methods already do. undici's `webidl.argumentLengthCheck(arguments, 1, 'getCookies')` compiles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>