mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
[js] Handle functions with rest parameters in isObservableArgumentSlot.
This commit is contained in:
parent
b746a4196a
commit
95db678f71
1 changed files with 1 additions and 1 deletions
|
|
@ -487,7 +487,7 @@ class CompileInfo
|
|||
|
||||
// Function.arguments can be used to access all arguments in non-strict
|
||||
// scripts, so we can't optimize out any arguments.
|
||||
if ((hasArguments() || !script()->strict()) &&
|
||||
if ((mayReadFrameArgsDirectly_ || !script()->strict()) &&
|
||||
firstArgSlot() <= slot && slot - firstArgSlot() < nargs())
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue