[Webkit-unassigned] [Bug 157872] New: Our parser doesn't properly parse default parameter expressions in a class method
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 18 16:29:00 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=157872
Bug ID: 157872
Summary: Our parser doesn't properly parse default parameter
expressions in a class method
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sbarati at apple.com
CC: benjamin at webkit.org, fpizlo at apple.com,
ggaren at apple.com, gskachkov at gmail.com,
keith_miller at apple.com, mark.lam at apple.com,
msaboff at apple.com, oliver at apple.com,
sukolsak at gmail.com, utatane.tea at gmail.com
This is a syntax error:
it shouldn't be:
test(function() {
class C {
constructor() { this._x = 45; }
get foo() { return this._x;}
}
class D extends C {
x(x = ()=>super.foo) {
return x();
}
}
assert((new D).x() === 45);
});
--
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/20160518/12868270/attachment-0001.html>
More information about the webkit-unassigned
mailing list