<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@gmail.com" title="youenn fablet <youennf@gmail.com>"> <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///////
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
fetch_tests_from_worker(new Worker('test.js'));
</script>
/////// 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 < 1; i++) {
promise_test(t => {
for (let j = 0; j < 10000; j++)
reader.read().then();
return new Promise(resolve => 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>