[Webkit-unassigned] [Bug 155060] Second call to super() should fail
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 4 23:16:10 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=155060
--- Comment #1 from GSkachkov <gskachkov at gmail.com> ---
We have very close issue to this https://bugs.webkit.org/show_bug.cgi?id=151113 that rely on discussion https://esdiscuss.org/topic/duplicate-super-call-behaviour
test example:
class Foo {
constructor() {
console.log("foo");
}
}
class Bar extends Foo {
constructor() {
super();
console.log("bar");
super();
}
}
new Bar;
If we will strictly follow specs we will have:
foo
bar
foo
ReferenceError: This can not be initialized twice.
--
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/cf0cdaa9/attachment.html>
More information about the webkit-unassigned
mailing list