mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 04:27:31 +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
|
|
@ -85,7 +85,7 @@ InterpreterFrame::isNonGlobalEvalFrame() const
|
|||
JSObject*
|
||||
InterpreterFrame::createRestParameter(JSContext* cx)
|
||||
{
|
||||
MOZ_ASSERT(callee().hasRest());
|
||||
MOZ_ASSERT(script()->hasRest());
|
||||
unsigned nformal = callee().nargs() - 1, nactual = numActualArgs();
|
||||
unsigned nrest = (nactual > nformal) ? nactual - nformal : 0;
|
||||
Value* restvp = argv() + nformal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue