mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
1339137 - Don't do Annex B lexical function behavior when redeclaring a parameter name in a function with parameter expressions.
This commit is contained in:
parent
bba9b43fca
commit
c92b219172
4 changed files with 41 additions and 9 deletions
|
|
@ -669,6 +669,14 @@ FunctionScope::script() const
|
|||
return canonicalFunction()->nonLazyScript();
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
FunctionScope::isSpecialName(ExclusiveContext* cx, JSAtom* name)
|
||||
{
|
||||
return name == cx->names().arguments ||
|
||||
name == cx->names().dotThis ||
|
||||
name == cx->names().dotGenerator;
|
||||
}
|
||||
|
||||
/* static */ Shape*
|
||||
FunctionScope::getEmptyEnvironmentShape(ExclusiveContext* cx, bool hasParameterExprs)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue