mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScript
Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
This commit is contained in:
parent
d3ffa46e36
commit
e7ee7caf1e
16 changed files with 52 additions and 37 deletions
|
|
@ -3249,7 +3249,7 @@ static bool
|
|||
CheckFunctionHead(ModuleValidator& m, ParseNode* fn)
|
||||
{
|
||||
JSFunction* fun = FunctionObject(fn);
|
||||
if (fun->hasRest())
|
||||
if (fn->pn_funbox->hasRest())
|
||||
return m.fail(fn, "rest args not allowed");
|
||||
if (fun->isExprBody())
|
||||
return m.fail(fn, "expression closures not allowed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue