mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-26 17:28:38 +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
|
|
@ -3435,10 +3435,7 @@ JS::NewFunctionFromSpec(JSContext* cx, const JSFunctionSpec* fs, HandleId id)
|
|||
{
|
||||
return nullptr;
|
||||
}
|
||||
JSFunction* fun = &funVal.toObject().as<JSFunction>();
|
||||
if (fs->flags & JSFUN_HAS_REST)
|
||||
fun->setHasRest();
|
||||
return fun;
|
||||
return &funVal.toObject().as<JSFunction>();
|
||||
}
|
||||
|
||||
RootedAtom atom(cx, IdToFunctionName(cx, id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue