<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Streams API] [GTK] Problem running imported/w3c/web-platform-tests/streams-api/readable-streams/templated.html with JIT active in worker"
   href="https://bugs.webkit.org/show_bug.cgi?id=152340#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Streams API] [GTK] Problem running imported/w3c/web-platform-tests/streams-api/readable-streams/templated.html with JIT active in worker"
   href="https://bugs.webkit.org/show_bug.cgi?id=152340">bug 152340</a>
              from <span class="vcard"><a class="email" href="mailto:youennf&#64;gmail.com" title="youenn fablet &lt;youennf&#64;gmail.com&gt;"> <span class="fn">youenn fablet</span></a>
</span></b>
        <pre>On my machine, I can further simplify the test to:
Given the /resources/... links, it needs to be run behind WPT server.

/////// test html file/////// 

&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
'use strict';
fetch_tests_from_worker(new Worker('test.js'));
&lt;/script&gt;

/////// test.js file/////// 

'use strict';

if (self.importScripts) {
  self.importScripts('/resources/testharness.js');
}

const reader = new ReadableStream().getReader();

// Changing from 2 to 1 makes the test pass.
for (let i = 0; i &lt; 1; i++) {
  promise_test(t =&gt; {

    for (let j = 0; j &lt; 10000; j++)
      reader.read().then();

    return new Promise(resolve =&gt; step_timeout(resolve, 500));

  }, 'Streams and promises in Worker');
}

done();</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>