[Webkit-unassigned] [Bug 157079] Assertion failure for super() call in arrow function default parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 9 12:46:29 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157079

--- Comment #9 from GSkachkov <gskachkov at gmail.com> ---
(In reply to comment #7)
> I see we have the following comment:
> 
>     // Loading |this| inside an arrow function must be done after
> initializeDefaultParameterValuesAndSetupFunctionScopeStack()
>     // because that function sets up the SymbolTable stack and
> emitLoadThisFromArrowFunctionLexicalEnvironment()
>     // consults the SymbolTable stack
> 
> 
> Is that comment correct though? I don't see why we need to consult the local
> symbol table stack here because we should always be doing non-local
> resolution.

Oh, I've copy pasted comments with if condition. 
I can be wrong, but if we do emitLoadThisFromArrowFunctionLexicalEnvironment before initializeDefaultParameterValuesAndSetupFunctionScopeStack, we resolved to wrong scope

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160509/a64be259/attachment.html>


More information about the webkit-unassigned mailing list