From af1546391c4a561eb26ccf9cd244b05aed9b5bfc Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 22 May 2021 18:08:24 +0200 Subject: feat(extensions): BroadcastChannel WPT conformance Replaces the file-backed provider by an in-memory one because proper file locking is a hard problem that detracts from the proof of concept. Teach the WPT runner how to extract tests from .html files because all the relevant tests in test_util/wpt/webmessaging/broadcastchannel are inside basics.html and interface.html. --- runtime/examples/hello_runtime.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/examples') diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index 80a258c17..e8abaffb8 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -2,6 +2,7 @@ use deno_core::error::AnyError; use deno_core::FsModuleLoader; +use deno_runtime::deno_broadcast_channel::InMemoryBroadcastChannel; use deno_runtime::deno_file::BlobUrlStore; use deno_runtime::permissions::Permissions; use deno_runtime::worker::MainWorker; @@ -42,6 +43,7 @@ async fn main() -> Result<(), AnyError> { location: None, location_data_dir: None, blob_url_store: BlobUrlStore::default(), + broadcast_channel: InMemoryBroadcastChannel::default(), }; let js_path = -- cgit v1.2.3