<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 - Second call to super() should fail"
href="https://bugs.webkit.org/show_bug.cgi?id=155060">155060</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Second call to super() should fail
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly 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>rniwa@webkit.org
</td>
</tr>
<tr>
<th>CC</th>
<td>ggaren@apple.com, keith_miller@apple.com, sbarati@apple.com, utatane.tea@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>class A { }
class B extends A { constructor() { super(); console.log('hi'); super(); } }
should fail immediately after 'hi' since "this" is already created.
Specifically, step 10 in SuperCall:
<a href="http://www.ecma-international.org/ecma-262/6.0/#sec-super-keyword-runtime-semantics-evaluation">http://www.ecma-international.org/ecma-262/6.0/#sec-super-keyword-runtime-semantics-evaluation</a>
10. Return thisER.BindThisValue(result).
should throw a ReferenceError because of step 3:
<a href="http://www.ecma-international.org/ecma-262/6.0/#sec-bindthisvalue">http://www.ecma-international.org/ecma-262/6.0/#sec-bindthisvalue</a>
3. If envRec.[[thisBindingStatus]] is "initialized", throw a ReferenceError exception.</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>