<?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>279863</bug_id>
          
          <creation_ts>2024-09-17 20:59:23 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: !reg.isConstant() caused by destructuring assignment</short_desc>
          <delta_ts>2024-09-24 11:10:04 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=221668</see_also>
          <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>3022001754</reporter>
          <assigned_to name="Alexey Shvayka">ashvayka</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>mark.lam</cc>
    
    <cc>sosuke</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2060940</commentid>
    <comment_count>0</comment_count>
    <who name="">3022001754</who>
    <bug_when>2024-09-17 20:59:23 -0700</bug_when>
    <thetext>###### Webkit
0da0eedeaa3f18bfd0bb2f1f4831f4fe3eaa4893

###### Build platform
Ubuntu 22.04.4

###### Build steps
```sh
./Tools/Scripts/build-jsc --jsc-only --debug --build-dir=&quot;0422_debug&quot; --cmakeargs=&quot;-DENABLE_STATIC_JSC=ON -DCMAKE_C_COMPILER=&apos;/usr/bin/clang&apos; -DCMAKE_CXX_COMPILER=&apos;/usr/bin/clang++&apos; -DCMAKE_CXX_FLAGS=&apos;-fsanitize-coverage=trace-pc-guard -O3 -lrt&apos;&quot;
```

###### Test case
```sh
var {[false] : b} = {};
```

###### Execution steps
```sh
./jsc poc.js
```

###### Output
```sh
ASSERTION FAILED: !reg.isConstant()
/JSC/Source/JavaScriptCore/interpreter/CallFrameInlines.h(43) : JSC::Register &amp;amp;JSC::CallFrame::uncheckedR(JSC::VirtualRegister)
1 0x1dc4cf9 /JSC/release/JSCOnly/Debug/bin/jsc() [0x1dc4cf9]
2 0x2dcb126 /JSC/release/JSCOnly/Debug/bin/jsc() [0x2dcb126]
3 0x3aac989 /JSC/release/JSCOnly/Debug/bin/jsc() [0x3aac989]

Thread 1 &quot;jsc&quot; received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737313263680) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737313263680) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737313263680) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737313263680, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff5948476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff592e7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x000000000155dd4b in WTFCrashWithInfo () at /JSC/release/JSCOnly/Debug/WTF/Headers/wtf/Assertions.h:879
#6 0x0000000001dc4d25 in JSC::CallFrame::uncheckedR (this=0x7fffffffd340, reg=...) at /JSC/Source/JavaScriptCore/interpreter/CallFrameInlines.h:43
#7 0x0000000002dcb126 in slow_path_to_property_key_or_number (callFrame=0x7fffffffd340, pc=0x7fffec096e2e) at /JSC/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:922
#8 0x0000000003aac989 in llint_op_to_property_key_or_number ()
#9 0x0000000000000000 in ?? ()
(gdb) f 6
#6 0x0000000001dc4d25 in JSC::CallFrame::uncheckedR (this=0x7fffffffd340, reg=...) at /JSC/Source/JavaScriptCore/interpreter/CallFrameInlines.h:43
43 ASSERT(!reg.isConstant());
(gdb) f 7
#7 0x0000000002dcb126 in slow_path_to_property_key_or_number (callFrame=0x7fffffffd340, pc=0x7fffec096e2e) at /JSC/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:922
922 RETURN(srcValue.isNumber() ? srcValue : srcValue.toPropertyKeyValue(globalObject));


```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061122</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-18 10:21:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/136233004&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061178</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2024-09-18 12:37:16 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/33848</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061493</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-19 09:31:01 -0700</bug_when>
    <thetext>Committed 283922@main (c4e162760b3e): &lt;https://commits.webkit.org/283922@main&gt;

Reviewed commits have been landed. Closing PR #33848 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062779</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-24 11:10:04 -0700</bug_when>
    <thetext>Committed 283286.117@safari-7620-branch (85bfbed8fd47): &lt;https://commits.webkit.org/283286.117@safari-7620-branch&gt;

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

    </bug>

</bugzilla>