[Webkit-unassigned] [Bug 225453] New: [JSC] Wrong names set for anonymous classes from static class fields in some cases
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 6 06:13:01 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225453
Bug ID: 225453
Summary: [JSC] Wrong names set for anonymous classes from
static class fields in some cases
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ticaiolima at gmail.com
The following example is setting the wrong name for anonymous classes:
```
class C { static InnerClass = class { static f = this.name; } }
print(C.InnerClass.name); // prints “”, but should print “InnerClass”
```
The following example does it correctly:
```
class C { static InnerClass = class { static f; } }
print(C.InnerClass.name); // prints “InnerClass”
```
Both Firefox and Chrome are returning “InnerClass” for both examples. This example came up from a spec bug pointed out on https://github.com/tc39/ecma262/pull/1668#issuecomment-608189621.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210506/aa4259b3/attachment.htm>
More information about the webkit-unassigned
mailing list