Skip to content

Commit

Permalink
Replace assert_precondition with assert_implements in workers/
Browse files Browse the repository at this point in the history
assert_precondition is deprecated (see
https://github.com/web-platform-tests/rfcs/blob/master/rfcs/assert_precondition_rename.md).
Since SharedWorker is not an OPTIONAL part of the HTML spec, these tests
should use assert_implements.
  • Loading branch information
stephenmcgruer authored and annevk committed Apr 17, 2020
1 parent aa9af1c commit 94a57a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/modules/shared-worker-parse-error-failure.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
};
worker.onerror = () => resolve(false);
});
assert_precondition(
assert_implements(
supportsModuleWorkers,
"Static import must be supported on module shared worker to run this test."
);
Expand Down

0 comments on commit 94a57a7

Please sign in to comment.