<?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>241414</bug_id>
          
          <creation_ts>2022-06-08 06:05:58 -0700</creation_ts>
          <short_desc>[JSC] Add support for Atomics.waitAsync</short_desc>
          <delta_ts>2022-11-28 00:13:47 -0800</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Florens Verschelde">florens</reporter>
          <assigned_to name="Yijia Huang">yijia_huang</assigned_to>
          <cc>chi187</cc>
    
    <cc>jensimmons</cc>
    
    <cc>orichidsjy</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yijia_huang</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1874703</commentid>
    <comment_count>0</comment_count>
    <who name="Florens Verschelde">florens</who>
    <bug_when>2022-06-08 06:05:58 -0700</bug_when>
    <thetext>We at StackBlitz are using Atomics.waitAsync (https://github.com/tc39/proposal-atomics-wait-async, apparently stage 3 and shipped in Chromium) on stackblitz.com to power our Node.js-in-the-browser port (called WebContainers).

Firefox doesn&apos;t implement Atomics.waitAsync either, but we were able to implement a polyfill using workers-in-workers, something that is not possible in Safari at this time.

The lack of Atomics.waitAsync in WebKit is one of the things stopping us from offering WebContainers to users of Safari and other WebKit-based browsers at this time. (Others include bug 174931, bug 238442, and possibly more we haven&apos;t identified yet.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874764</commentid>
    <comment_count>1</comment_count>
    <who name="Florens Verschelde">florens</who>
    <bug_when>2022-06-08 11:03:47 -0700</bug_when>
    <thetext>Firefox is currently prototyping:
https://groups.google.com/a/mozilla.org/g/dev-platform/c/Z5TPivxh1Xs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874777</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-08 12:10:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/94655073&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895627</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Chang">orichidsjy</who>
    <bug_when>2022-09-01 15:53:51 -0700</bug_when>
    <thetext>Given that this bug is also relevant to the implementation of RegExp lookbehind, please also take time to look at https://bugs.webkit.org/show_bug.cgi?id=174931 which is also needed for a higher priority. It&apos;s also noted that Atomics.waitAsync has been shipped in both Chromium and Firefox now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901219</commentid>
    <comment_count>4</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2022-09-26 10:05:37 -0700</bug_when>
    <thetext>*** Bug 245676 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906545</commentid>
    <comment_count>5</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2022-10-18 11:57:38 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5333</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907616</commentid>
    <comment_count>6</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2022-10-23 00:17:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5683</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914908</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-28 00:13:45 -0800</bug_when>
    <thetext>Committed 257061@main (7e3fb31d5987): &lt;https://commits.webkit.org/257061@main&gt;

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

    </bug>

</bugzilla>