<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failure for super() in default parameter with direct eval"
href="https://bugs.webkit.org/show_bug.cgi?id=157085">157085</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure for super() in default parameter with direct eval
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Local Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andre.bargull@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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("") } }
---
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 &, bool, JSC::FunctionNode *, JSC::SymbolTable *, int, const std::function<bool(WTF::UniquedStringImpl*)> &) (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<JSC::BytecodeGenerator, JSC::VM&, JSC::FunctionNode*, JSC::UnlinkedFunctionCodeBlock*&, JSC::DebuggerMode&, JSC::ProfilerMode&, JSC::VariableEnvironment const*>
() at ../../Source/WTF/wtf/StdLibExtras.h:316
#8 0x00007ffff6420b49 in JSC::BytecodeGenerator::generate<JSC::FunctionNode*, JSC::UnlinkedFunctionCodeBlock*&, JSC::DebuggerMode&, JSC::ProfilerMode&, JSC::VariableEnvironment const*> (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
...
---</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>