<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>157085</bug_id>
          
          <creation_ts>2016-04-27 10:29:49 -0700</creation_ts>
          <short_desc>Assertion failure for super() in default parameter with direct eval</short_desc>
          <delta_ts>2016-05-15 09:00:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>157149</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="André Bargull">andre.bargull</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1187797</commentid>
    <comment_count>0</comment_count>
    <who name="André Bargull">andre.bargull</who>
    <bug_when>2016-04-27 10:29:49 -0700</bug_when>
    <thetext>SVN: rev200124
Build with: perl Tools/Scripts/build-jsc --gtk --debug


The following test case triggers this assertion error:
---
ASSERTION FAILED: isDerivedConstructorContext() || m_arrowFunctionContextLexicalEnvironmentRegister != nullptr
---


Test case:
---
new class extends null { constructor(a=super()) { eval(&quot;&quot;) } }
---


Stack trace:
---
#0  0x00007ffff6e289ac in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:322
#1  0x00007ffff64410fe in JSC::BytecodeGenerator::emitPutThisToArrowFunctionContextScope (this=0x7ffff0d98a00) at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:4269
#2  0x00007ffff647911b in JSC::FunctionCallValueNode::emitBytecode (this=0x7fffafdf40a0, generator=..., dst=0x7ffff0dd896c) at ../../Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:781
#3  0x00007ffff6449637 in JSC::BytecodeGenerator::emitNodeInTailPosition (this=0x7ffff0d98a00, dst=0x7ffff0dd896c, n=0x7fffafdf40a0) at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:415
#4  0x00007ffff6449521 in JSC::BytecodeGenerator::emitNode (this=0x7ffff0d98a00, dst=0x7ffff0dd896c, n=0x7fffafdf40a0) at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:406
#5  0x00007ffff642cde1 in JSC::BytecodeGenerator::initializeDefaultParameterValuesAndSetupFunctionScopeStack(JSC::FunctionParameters &amp;, bool, JSC::FunctionNode *, JSC::SymbolTable *, int, const std::function&lt;bool(WTF::UniquedStringImpl*)&gt; &amp;) (this=0x7ffff0d98a00, parameters=..., isSimpleParameterList=false, functionNode=0x7ffff0d91000, functionSymbolTable=0x7fffaede3e40, 
    symbolTableConstantIndex=1073741824, captures=...) at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:829
#6  0x00007ffff642a364 in JSC::BytecodeGenerator::BytecodeGenerator (this=0x7ffff0d98a00, vm=..., functionNode=0x7ffff0d91000, codeBlock=0x7fffaedb7e00, debuggerMode=JSC::DebuggerOff, 
    profilerMode=JSC::ProfilerOff, parentScopeTDZVariables=0x7fffaedcc790) at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:563
#7  0x00007ffff6422a2a in std::make_unique&lt;JSC::BytecodeGenerator, JSC::VM&amp;, JSC::FunctionNode*, JSC::UnlinkedFunctionCodeBlock*&amp;, JSC::DebuggerMode&amp;, JSC::ProfilerMode&amp;, JSC::VariableEnvironment const*&gt;
    () at ../../Source/WTF/wtf/StdLibExtras.h:316
#8  0x00007ffff6420b49 in JSC::BytecodeGenerator::generate&lt;JSC::FunctionNode*, JSC::UnlinkedFunctionCodeBlock*&amp;, JSC::DebuggerMode&amp;, JSC::ProfilerMode&amp;, JSC::VariableEnvironment const*&gt; (vm=...)
    at ../../Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:296
#9  0x00007ffff641e444 in JSC::generateUnlinkedFunctionCodeBlock (vm=..., executable=0x7fffaedcc700, source=..., kind=JSC::CodeForConstruct, debuggerMode=JSC::DebuggerOff, profilerMode=JSC::ProfilerOff, 
    functionKind=JSC::UnlinkedNormalFunction, error=..., parseMode=JSC::SourceParseMode::MethodMode) at ../../Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp:73
#10 0x00007ffff641f372 in JSC::UnlinkedFunctionExecutable::unlinkedCodeBlockFor (this=0x7fffaedcc700, vm=..., source=..., specializationKind=JSC::CodeForConstruct, debuggerMode=JSC::DebuggerOff, 
    profilerMode=JSC::ProfilerOff, error=..., parseMode=JSC::SourceParseMode::MethodMode) at ../../Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp:210
...
---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1193217</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2016-05-15 09:00:08 -0700</bug_when>
    <thetext>Fixed by r200293.

*** This bug has been marked as a duplicate of bug 157149 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>