<?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>273964</bug_id>
          
          <creation_ts>2024-05-09 12:06:03 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: !hasError()  in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseClassFieldInitializerSourceElements&lt;JSC::ASTBuilder&gt;l</short_desc>
          <delta_ts>2024-07-10 12:35:44 -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 Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>276438</dup_id>
          
          <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="qbtly">qbtly201</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dan.hecht</cc>
    
    <cc>mark.lam</cc>
    
    <cc>nth10sd</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2034363</commentid>
    <comment_count>0</comment_count>
    <who name="qbtly">qbtly201</who>
    <bug_when>2024-05-09 12:06:03 -0700</bug_when>
    <thetext>###### Webkit
189e31a68cec1731ca0e74da669bc3b17011a9a1

###### Build platform
Ubuntu 22.04.3

###### Build steps
./Tools/Scripts/build-jsc --jsc-only --debug --build-dir=0508 --cmakeargs=&quot;-DENABLE_STATIC_JSC=ON&quot;
    	
###### Test case
```sh
async function* a() {
    class C {
      static [await Promise.resolve(2)] = 2[await Promise.resolve(1)] = 1;
    }
  }
a().next().then(({value}) =&gt; {});
```

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

###### Output
ASSERTION FAILED: !hasError()
/jsc/Source/JavaScriptCore/parser/Parser.cpp(3367) : typename TreeBuilder::SourceElements JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt;&gt;::parseClassFieldInitializerSourceElements(TreeBuilder &amp;, const FixedVector&lt;UnlinkedFunctionExecutable::ClassElementDefinition&gt; &amp;) [LexerType = JSC::Lexer&lt;unsigned char&gt;, TreeBuilder = JSC::ASTBuilder]

Thread 1 &quot;jsc&quot; received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737313263808) 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=140737313263808) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737313263808) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737313263808, 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  0x00005555561355da in WTFCrashWithInfo () at /jsc/0508/JSCOnly/Debug/WTF/Headers/wtf/Assertions.h:862
#6  0x0000555557a0ea5c in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseClassFieldInitializerSourceElements&lt;JSC::ASTBuilder&gt; (
    this=this@entry=0x7fffffffb3e8, context=..., classElementDefinitions=...)
    at /jsc/Source/JavaScriptCore/parser/Parser.cpp:3367
#7  0x0000555557a07399 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parseInner (this=0x7fffffffb3e8, calleeName=..., 
    parsingContext=JSC::ParsingContext::Normal, 
    functionConstructorParametersEndPosition=std::optional&lt;int&gt; [no contained value], classElementDefinitions=0x6, 
    parentScopePrivateNames=&lt;optimized out&gt;) at /jsc/Source/JavaScriptCore/parser/Parser.cpp:292
#8  0x000055555651aba2 in JSC::Parser&lt;JSC::Lexer&lt;unsigned char&gt; &gt;::parse&lt;JSC::FunctionNode&gt; (this=0x3b402b, 
    this@entry=0x7fffffffb3e8, error=..., calleeName=..., parsingContext=(unknown: 0xf599c9fc), 
    parsingContext@entry=JSC::ParsingContext::Normal, functionConstructorParametersEndPosition=std::optional&lt;int&gt; = {...}, 
    functionConstructorParametersEndPosition@entry=std::optional&lt;int&gt; [no contained value], 
    parentScopePrivateNames=&lt;optimized out&gt;, classElementDefinitions=&lt;optimized out&gt;)
    at /jsc/Source/JavaScriptCore/parser/Parser.h:2190
#9  0x0000555556519d5d in JSC::parse&lt;JSC::FunctionNode&gt; (vm=..., source=..., name=..., 
    implementationVisibility=&lt;optimized out&gt;, builtinMode=&lt;optimized out&gt;, strictMode=&lt;optimized out&gt;, 
    scriptMode=&lt;optimized out&gt;, parseMode=&lt;optimized out&gt;, functionMode=&lt;optimized out&gt;, superBinding=&lt;optimized out&gt;, 
    error=..., constructorKind=&lt;optimized out&gt;, derivedContextType=&lt;optimized out&gt;, evalContextType=&lt;optimized out&gt;, 
    parentScopePrivateNames=&lt;optimized out&gt;, classElementDefinitions=&lt;optimized out&gt;, isInsideOrdinaryFunction=&lt;optimized out&gt;)
    at /jsc/Source/JavaScriptCore/parser/Parser.h:2286
#10 0x00005555565166a4 in JSC::generateUnlinkedFunctionCodeBlock (vm=..., executable=0x7fffaa4a59c0, source=..., 
    kind=&lt;optimized out&gt;, codeGenerationMode=..., error=..., parseMode=&lt;optimized out&gt;, functionKind=&lt;optimized out&gt;)
    at /jsc/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp:59
--Type &lt;RET&gt; for more, q to quit, c to continue without paging--
#11 JSC::UnlinkedFunctionExecutable::unlinkedCodeBlockFor (this=0x7fffaa4a59c0, vm=..., source=..., 
    specializationKind=&lt;optimized out&gt;, codeGenerationMode=..., error=..., parseMode=&lt;optimized out&gt;)
    at /jsc/Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp:244
#12 0x000055555830dd7f in JSC::ScriptExecutable::newCodeBlockFor (this=this@entry=0x7fffaa4aa280, kind=&lt;optimized out&gt;, 
    function=function@entry=0x7fffaa47a7e0, scope=scope@entry=0x7fffaa4e8130)
    at /jsc/Source/JavaScriptCore/runtime/ScriptExecutable.cpp:310
#13 0x00005555583105ea in JSC::ScriptExecutable::prepareForExecutionImpl (this=0x7fffaa4aa280, vm=..., 
    function=0x7fffaa47a7e0, scope=0x7fffaa4e8130, kind=JSC::CodeForCall, resultCodeBlock=@0x7fffffffd9d0: 0x0)
    at /jsc/Source/JavaScriptCore/runtime/ScriptExecutable.cpp:400
#14 0x0000555556a9a1c8 in JSC::ScriptExecutable::prepareForExecution&lt;JSC::FunctionExecutable&gt; (this=0x7fffaa4aa280, vm=..., 
    function=0x7fffaa47a7e0, scope=0x7fffaa4e8130, kind=JSC::CodeForCall, resultCodeBlock=@0x7fffffffd9d0: 0x0)
    at /jsc/Source/JavaScriptCore/bytecode/CodeBlock.h:1021
#15 0x00005555578d3abc in JSC::linkFor (vm=..., owner=owner@entry=0x7fffaa4d4c40, 
    calleeFrame=calleeFrame@entry=0x7fffffffd9c0, callLinkInfo=callLinkInfo@entry=0x7fffec05eb78)
    at /jsc/Source/JavaScriptCore/bytecode/RepatchInlines.h:191
#16 0x00005555578d31e4 in operationDefaultCall (calleeFrame=0x7fffffffd9c0, callLinkInfo=0x7fffec05eb78)
    at /jsc/Source/JavaScriptCore/jit/JITOperations.cpp:2425
#17 0x00007fffab0fc017 in ?? ()
#18 0x00007fffffffda50 in ?? ()
#19 0x0000555558b803f1 in llint_op_call_ignore_result ()
#20 0x0000000000000000 in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034373</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-09 12:47:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/127832822&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034390</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2024-05-09 13:42:50 -0700</bug_when>
    <thetext>rdar://119044881</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045585</commentid>
    <comment_count>3</comment_count>
    <who name="Dan Hecht">dan.hecht</who>
    <bug_when>2024-07-10 12:35:44 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 276438 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>