Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing promise_setup() in a worker never issues results. #29373

Open
dalecurtis opened this issue Jun 14, 2021 · 0 comments
Open

Failing promise_setup() in a worker never issues results. #29373

dalecurtis opened this issue Jun 14, 2021 · 0 comments

Comments

@dalecurtis
Copy link
Contributor

@dalecurtis dalecurtis commented Jun 14, 2021

Specifically this will hang in a worker:

// META: global=window,dedicatedworker

promise_setup(async () => {
  assert_implements_optional(false, 'platform unsupported');
});

promise_test(t => {
  return Promise.resolve('yay!');
});

... but when run from a window:

This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Error: platform unsupported
NOTRUN broken
Harness: the test ran to completion.

I tried to trace through what's going wrong, but got lost. My best guess is that results are never sent to the window's message port, so even though complete is sent nothing ends up displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants