[Webkit-unassigned] [Bug 155060] New: Second call to super() should fail
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 4 20:07:18 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=155060
Bug ID: 155060
Summary: Second call to super() should fail
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: rniwa at webkit.org
CC: ggaren at apple.com, keith_miller at apple.com,
sbarati at apple.com, utatane.tea at gmail.com
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:
http://www.ecma-international.org/ecma-262/6.0/#sec-super-keyword-runtime-semantics-evaluation
10. Return thisER.BindThisValue(result).
should throw a ReferenceError because of step 3:
http://www.ecma-international.org/ecma-262/6.0/#sec-bindthisvalue
3. If envRec.[[thisBindingStatus]] is "initialized", throw a ReferenceError exception.
--
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/20160305/bce43111/attachment.html>
More information about the webkit-unassigned
mailing list