<?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>275055</bug_id>
          
          <creation_ts>2024-06-03 06:54:42 -0700</creation_ts>
          <short_desc>[Regression] Spread of class should not inherit instanceof</short_desc>
          <delta_ts>2024-06-04 14:10:01 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max Schmitt">max</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>lloisrrois</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2039419</commentid>
    <comment_count>0</comment_count>
    <who name="Max Schmitt">max</who>
    <bug_when>2024-06-03 06:54:42 -0700</bug_when>
    <thetext>RANGE: https://github.com/WebKit/WebKit/compare/cd9be0fded51cea4c2c3a7c9a21d6b4d341df09d...91f787886ac542eb4148d991b629c028f389f0cf

Potential commit which broke it: https://github.com/WebKit/WebKit/commit/804d44f89619bfae3e5e2e21a07669b1fb320d57

Repro:

```ts
class Test {field1 = &apos;foo&apos;;}
const t1 = { ...new Test() };
console.log(t1 instanceof Test);
```

Expected: false
Actual: true

V8/Spidermonkey return false.

Downstream issue: https://github.com/microsoft/playwright/issues/31132</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039422</commentid>
    <comment_count>1</comment_count>
    <who name="Max Schmitt">max</who>
    <bug_when>2024-06-03 07:01:08 -0700</bug_when>
    <thetext>Was able to reproduce it in Safari Technology Preview - t1 is a class instance while in V8/Spidermonkey its just an object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039450</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-06-03 09:21:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/129168077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039714</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2024-06-04 13:07:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/29511</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039726</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-06-04 14:09:59 -0700</bug_when>
    <thetext>Committed 279713@main (2069a352b203): &lt;https://commits.webkit.org/279713@main&gt;

Reviewed commits have been landed. Closing PR #29511 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>