<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>225453</bug_id>
          
          <creation_ts>2021-05-06 06:13:01 -0700</creation_ts>
          <short_desc>[JSC] Wrong names set for anonymous classes from static class fields in some cases</short_desc>
          <delta_ts>2021-05-13 06:13:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Caio Lima">ticaiolima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1757376</commentid>
    <comment_count>0</comment_count>
    <who name="Caio Lima">ticaiolima</who>
    <bug_when>2021-05-06 06:13:01 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759673</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-13 06:13:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/77963278&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>